Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // RegisterService will register a service to a certain custom record // number if that number does not already have a service registered. RegisterService(string, service.Service) error // Start will start the handler so it may listen for messages to handle. Start() error // Stop will start the handler so it may listen for messages to handle. Stop() error // GetService finds and returns an active service matching the type. GetService(string) (service.Service, error) }
Handler will handle messages meant for specific services.
func NewHandler ¶
func NewHandler(c chan comm.IncomingDIDMessage, ws Websocket, keyManager key.KeyManager, identity id.Identity, messageManager messages.MessageManager) Handler
NewHandler returns a new service handler with a channel implemented for receiving messages
type Websocket ¶
type Websocket interface { PublishData(comm.DIDCommMsg) SubscribeData() (uuid.UUID, chan comm.DIDCommMsg) UnsubscribeData(uuid.UUID) }
func NewWebsocket ¶
func NewWebsocket() Websocket
Directories ¶
Path | Synopsis |
---|---|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
state/mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
mock
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.