Documentation ¶
Index ¶
- func SaveLayout(layout Layout) error
- type Layout
- type Pool
- func (pool *Pool) Add(apiName string, id uuid.UUID, sockets map[types.Socket]bool) (types.API, error)
- func (pool *Pool) GetImageDB() *types.ImageDB
- func (pool *Pool) List() []types.API
- func (pool *Pool) Register(a types.API)
- func (pool *Pool) Save()
- func (pool *Pool) SaveImageDB()
- func (pool *Pool) Switch(a types.API, message types.ClientMessage) error
- func (pool *Pool) Unregister(data types.Unregister)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveLayout ¶
SaveLayout stores layout to a local json file
Types ¶
type Layout ¶
Layout of multiple Sockets Each layout is stored serverside to be retrieved later by the client
func LoadLayout ¶
LoadLayout returns the stored layout of the given name
type Pool ¶
type Pool struct { Map map[uuid.UUID]types.API ImageDB *types.ImageDB // contains filtered or unexported fields }
Pool holds multiple apis and handles registration and deletion
func (*Pool) Add ¶
func (pool *Pool) Add(apiName string, id uuid.UUID, sockets map[types.Socket]bool) (types.API, error)
Add a new API to the pool
func (*Pool) GetImageDB ¶
func (*Pool) SaveImageDB ¶
func (pool *Pool) SaveImageDB()
Click to show internal directories.
Click to hide internal directories.