Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthAccepted = mqttcodec.Accepted )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublishCallbackFunc ¶
type PublishCallbackFunc func(*PublishRequest, *PublishResponse)
type PublishID ¶
type PublishID interface{}
PublishID is optional identifier for a particular message assigned by broker It can be complete in case of fire and forget delivery
type PublishRequest ¶
type PublishResponse ¶
type Publisher ¶
type Publisher interface { Name() string Publish(context.Context, *PublishRequest) (*PublishResponse, error) PublishAsync(context.Context, *PublishRequest, PublishCallbackFunc) error Serve() error Shutdown(err error) Close() error }
type PublisherFactory ¶
type UserPasswordAuthRequest ¶
type UserPasswordAuthResponse ¶
type UserPasswordAuthResponse struct {
ReturnCode byte
}
type UserPasswordAuthenticator ¶
type UserPasswordAuthenticator interface { Name() string Login(context.Context, *UserPasswordAuthRequest) (*UserPasswordAuthResponse, error) Close() error }
type UserPasswordAuthenticatorFactory ¶
type UserPasswordAuthenticatorFactory interface {
New(params []string) (UserPasswordAuthenticator, error)
}
Click to show internal directories.
Click to hide internal directories.