Documentation ¶
Overview ¶
Package conn provides the top level package for all connection types to the ARN service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
PromisePool is a pool of promises to use for notifications.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithLogger ¶
WithLogger sets the logger on the client. By default it uses slog.Default().
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Reset provides a REST connection to the ARN service.
func New ¶
func New(httpClient *http.Client, store *storage.Client, clientErrs chan error, options ...Option) (*Service, error)
New creates a new connection to the ARN service.
func (*Service) Send ¶
func (s *Service) Send(notify models.Notifications)
Send sends a notification to the ARN service. This will block if the internal channel is full. notify.DataCount() must indicate no more than 1000 items. Not thread safe.
Directories ¶
Path | Synopsis |
---|---|
Package http provides a client for interacting with the ARN receiver API using an azcore.Client.
|
Package http provides a client for interacting with the ARN receiver API using an azcore.Client. |
Package maxvals holds maximum values for message attributes send via the conn package.
|
Package maxvals holds maximum values for message attributes send via the conn package. |
Package storage provides a client around Azure Blob Storage for sending data that will be used by the ARN service.
|
Package storage provides a client around Azure Blob Storage for sending data that will be used by the ARN service. |
Click to show internal directories.
Click to hide internal directories.