service

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL