Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 925097e

Browse files
committed
Tweak documentation
Signed-off-by: Andy Lo-A-Foe <andy.loafoe@gmail.com>
1 parent 96f3b0e commit 925097e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
## v0.39.0
7+
- HSDP Notificatin support
8+
69
## v0.38.1
710
- Filter known sensitive fields form debug logs
811
- Move cartel client to internal logger

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The current implement covers only a subset of HSDP APIs. Basically we implement
1616
- [x] Device queries
1717
- [x] Application Resources management
1818
- [x] Device configuration management (firewall, logging)
19-
- [x] Public Key Infrastructe (PKI) management
19+
- [x] Public Key Infrastructure (PKI) management
2020
- [x] Identity and Access Management (IAM)
2121
- [x] Groups
2222
- [x] Organizations
@@ -44,6 +44,7 @@ The current implement covers only a subset of HSDP APIs. Basically we implement
4444
- [x] S3Creds Policy management
4545
- [x] DICOM Store
4646
- [x] Config management
47+
- [x] Notification service
4748
- [x] Hosted Application Streaming (HAS) management
4849
- [x] Service Discovery
4950
- [x] Console settings

notification/client.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package notification provides support for interacting with HSDP Notification services
12
package notification
23

34
import (
@@ -46,7 +47,7 @@ type Client struct {
4647

4748
notificationURL *url.URL
4849

49-
// User agent used when communicating with the HSDP Notification API.
50+
// User agent used when communicating with the HSDP Notification API
5051
UserAgent string
5152

5253
debugFile *os.File
@@ -58,8 +59,8 @@ type Client struct {
5859
Topic *TopicService
5960
}
6061

61-
// NewClient returns a new HSDP Notification API client. Configured console and IAM clients
62-
// must be provided as the underlying API requires tokens from respective services
62+
// NewClient returns a new HSDP Notification API client. A configured IAM client
63+
// must be provided as the underlying API requires an IAM token
6364
func NewClient(iamClient *iam.Client, config *Config) (*Client, error) {
6465
return newClient(iamClient, config)
6566
}
@@ -102,8 +103,7 @@ func (c *Client) Close() {
102103
}
103104
}
104105

105-
// SetNotificationURL sets the FHIR store URL for API requests to a custom endpoint. urlStr
106-
// should always be specified with a trailing slash.
106+
// SetNotificationURL sets the Notification URL for API requests
107107
func (c *Client) SetNotificationURL(urlStr string) error {
108108
if urlStr == "" {
109109
return ErrNotificationURLCannotBeEmpty

notification/publish.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type PublishResponse struct {
1616
TopicID string `json:"topicId"`
1717
}
1818

19+
// Publish publishes a message to a topic
1920
func (c *Client) Publish(request PublishRequest) (*PublishResponse, *Response, error) {
2021
if err := c.validate.Struct(request); err != nil {
2122
return nil, nil, err

0 commit comments

Comments
 (0)