broker

package
v0.0.0-...-9a529fd Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(netAddr string) (core.AuthBrokerClient, error)

NewClient instantiates a new core.Broker client

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

func NewDialer

func NewDialer(netAddr []byte) Dialer

NewDialer constructs a new dialer from a given net address

type Interface

type Interface interface {
	core.BrokerServer
	core.BrokerManagerServer
	Start() error
}

Interface defines the Broker interface

func New

func New(c Components, o Options) Interface

New construct a new Broker component

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

type Options

type Options struct {
	NetAddrUp   string
	NetAddrDown string
}

Options defines a structure to make the instantiation easier to read

Jump to

Keyboard shortcuts

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