Documentation ¶
Index ¶
- Variables
- type BlobSharedAccessSignatureRequest
- type BlobSharedAccessSignatureResponse
- type ErrorResponse
- type NotifyUploadCompleteRequest
- type Transport
- func (tr *Transport) Close() error
- func (tr *Transport) Connect(ctx context.Context, creds transport.Credentials) error
- func (tr *Transport) GetBlobSharedAccessSignature(ctx context.Context, blobName string) (string, string, error)
- func (tr *Transport) NotifyUploadComplete(ctx context.Context, correlationID string, success bool, statusCode int, ...) error
- func (tr *Transport) RegisterDirectMethods(ctx context.Context, mux transport.MethodDispatcher) error
- func (tr *Transport) RetrieveTwinProperties(ctx context.Context) (payload []byte, err error)
- func (tr *Transport) Send(ctx context.Context, msg *common.Message) error
- func (tr *Transport) SetLogger(logger logger.Logger)
- func (tr *Transport) SubscribeEvents(ctx context.Context, mux transport.MessageDispatcher) error
- func (tr *Transport) SubscribeTwinUpdates(ctx context.Context, mux transport.TwinStateDispatcher) error
- func (tr *Transport) UpdateTwinProperties(ctx context.Context, payload []byte) (version int, err error)
- func (tr *Transport) UploadToBlob(ctx context.Context, sasURI string, file io.Reader, size int64) error
- type TransportOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotImplemented = errors.New("not implemented") DefaultSASTTL = 30 * time.Second )
Functions ¶
This section is empty.
Types ¶
type BlobSharedAccessSignatureRequest ¶
type BlobSharedAccessSignatureRequest struct {
}type BlobSharedAccessSignatureResponse ¶
type BlobSharedAccessSignatureResponse struct {}
func (*BlobSharedAccessSignatureResponse) SASURI ¶
func (r *BlobSharedAccessSignatureResponse) SASURI() string
type ErrorResponse ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func (*Transport) GetBlobSharedAccessSignature ¶
func (*Transport) NotifyUploadComplete ¶
func (*Transport) RegisterDirectMethods ¶
func (tr *Transport) RegisterDirectMethods(ctx context.Context, mux transport.MethodDispatcher) error
RegisterDirectMethods is not available in the HTTP transport.
func (*Transport) RetrieveTwinProperties ¶
RetrieveTwinProperties is not available in the HTTP transport.
func (*Transport) SubscribeEvents ¶
SubscribeEvents is not available in the HTTP transport.
func (*Transport) SubscribeTwinUpdates ¶
func (tr *Transport) SubscribeTwinUpdates(ctx context.Context, mux transport.TwinStateDispatcher) error
SubscribeTwinUpdates is not available in the HTTP transport.
type TransportOption ¶
type TransportOption func(tr *Transport)
TransportOption is a transport configuration option.
func WithClient ¶
func WithClient(c *http.Client) TransportOption
WithClient sets client to use for HTTP requests.
func WithLogger ¶
func WithLogger(l logger.Logger) TransportOption
WithLogger sets logger for errors and warnings plus debug messages when it's enabled.
func WithTLSConfig ¶
func WithTLSConfig(config *tls.Config) TransportOption
WithTLSConfig sets TLS config that's used by REST HTTP and AMQP clients.
func WithTTL ¶
func WithTTL(ttl time.Duration) TransportOption
WithTTL configures the TTL used for SAS tokens.
Click to show internal directories.
Click to hide internal directories.