Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppStorage ¶
type AppStorage interface {
// contains filtered or unexported methods
}
AppStorage gives a facade for manipulating the broker applications infos
func NewAppStorage ¶
func NewAppStorage(name string) (AppStorage, error)
NewAppStorage constructs a new broker controller
type Closer ¶
type Closer interface {
Close() error
}
Closer is returned by a Dialer to give a hand on closing the dialed connection
type Components ¶
type Components struct { NetworkController NetworkController AppStorage AppStorage Ctx log.Interface }
Components defines a structure to make the instantiation easier to read
type Dialer ¶
type Dialer interface { MarshalSafely() []byte Dial() (core.HandlerClient, Closer, error) // Dial actually attempts to dial a connection }
Dialer abstracts the connection to grpc, or anything else
type Interface ¶
type Interface interface { core.BrokerServer core.BrokerManagerServer Start() error }
Interface defines the Broker interface
type NetworkController ¶
type NetworkController interface {
// contains filtered or unexported methods
}
NetworkController gives a facade for manipulating the broker databases and devices
func NewNetworkController ¶
func NewNetworkController(name string) (NetworkController, error)
NewNetworkController constructs a new broker controller
Click to show internal directories.
Click to hide internal directories.