Documentation ¶
Index ¶
- func IDService(idChan chan string)
- type BlockInfo
- type BlockManager
- func (b *BlockManager) Connect(connInfo *ConnectionInfo) (*ConnectionInfo, error)
- func (b *BlockManager) Create(blockInfo *BlockInfo) (*BlockInfo, error)
- func (b *BlockManager) DeleteBlock(id string) ([]string, error)
- func (b *BlockManager) DeleteConnection(id string) (string, error)
- func (b *BlockManager) DeleteSocket(blockId string, connId string) error
- func (b *BlockManager) GetBlock(id string) (*BlockInfo, error)
- func (b *BlockManager) GetConnection(id string) (*ConnectionInfo, error)
- func (b *BlockManager) GetId() string
- func (b *BlockManager) GetSocket(fromId string) (chan *blocks.Msg, string, error)
- func (b *BlockManager) IdExists(id string) bool
- func (b *BlockManager) IdSafe(id string) bool
- func (b *BlockManager) ListBlocks() []*BlockInfo
- func (b *BlockManager) ListConnections() []*ConnectionInfo
- func (b *BlockManager) QueryBlock(id string, route string) (interface{}, error)
- func (b *BlockManager) QueryConnection(id string, route string) (interface{}, error)
- func (b *BlockManager) Send(id string, route string, msg interface{}) error
- func (b *BlockManager) StatusBlocks() []string
- func (b *BlockManager) UpdateBlock(id string, coord *Coords) (*BlockInfo, error)
- type ConnectionInfo
- type Coords
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockManager ¶
func NewBlockManager ¶
func NewBlockManager() *BlockManager
func (*BlockManager) Connect ¶
func (b *BlockManager) Connect(connInfo *ConnectionInfo) (*ConnectionInfo, error)
func (*BlockManager) Create ¶
func (b *BlockManager) Create(blockInfo *BlockInfo) (*BlockInfo, error)
func (*BlockManager) DeleteBlock ¶
func (b *BlockManager) DeleteBlock(id string) ([]string, error)
func (*BlockManager) DeleteConnection ¶
func (b *BlockManager) DeleteConnection(id string) (string, error)
func (*BlockManager) DeleteSocket ¶
func (b *BlockManager) DeleteSocket(blockId string, connId string) error
func (*BlockManager) GetConnection ¶
func (b *BlockManager) GetConnection(id string) (*ConnectionInfo, error)
func (*BlockManager) GetId ¶
func (b *BlockManager) GetId() string
func (*BlockManager) IdExists ¶
func (b *BlockManager) IdExists(id string) bool
func (*BlockManager) IdSafe ¶
func (b *BlockManager) IdSafe(id string) bool
func (*BlockManager) ListBlocks ¶
func (b *BlockManager) ListBlocks() []*BlockInfo
func (*BlockManager) ListConnections ¶
func (b *BlockManager) ListConnections() []*ConnectionInfo
func (*BlockManager) QueryBlock ¶
func (b *BlockManager) QueryBlock(id string, route string) (interface{}, error)
func (*BlockManager) QueryConnection ¶
func (b *BlockManager) QueryConnection(id string, route string) (interface{}, error)
func (*BlockManager) Send ¶
func (b *BlockManager) Send(id string, route string, msg interface{}) error
func (*BlockManager) StatusBlocks ¶ added in v0.2.3
func (b *BlockManager) StatusBlocks() []string
func (*BlockManager) UpdateBlock ¶
func (b *BlockManager) UpdateBlock(id string, coord *Coords) (*BlockInfo, error)
type ConnectionInfo ¶
Click to show internal directories.
Click to hide internal directories.