Documentation ¶
Index ¶
- type BotIpfsHandler
- type Datastore
- func (kv Datastore) Close() error
- func (kv Datastore) Delete(key ds.Key) error
- func (kv Datastore) Get(key ds.Key) (data []byte, err error)
- func (kv Datastore) GetSize(key ds.Key) (size int, err error)
- func (kv Datastore) Has(key ds.Key) (exists bool, err error)
- func (kv Datastore) Put(key ds.Key, data []byte) error
- func (kv Datastore) Query(query.Query) (query.Results, error)
- type Service
- func (s *Service) Create(botID string, botVersion int, name string, params map[string]string, ...)
- func (s *Service) Delete(botID string, q []byte) (shared.Response, error)
- func (s *Service) Exists(id string) bool
- func (s *Service) Get(botID string, q []byte) (shared.Response, error)
- func (s *Service) List() *pb.ActiveBotList
- func (s *Service) Post(botID string, q []byte, body []byte) (shared.Response, error)
- func (s *Service) Put(botID string, q []byte, body []byte) (shared.Response, error)
- func (s *Service) RunAll(repoPath string, bots []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotIpfsHandler ¶
type BotIpfsHandler struct {
// contains filtered or unexported fields
}
BotIpfsHandler implements shared.IpfsHandler. Extends it by hanging on the the botID
type Datastore ¶ added in v0.7.5
Datastore implements shared.Botstore. Extends it with BotID and BotVersion
func (Datastore) Get ¶ added in v0.7.5
Get allows a bot to get a value by string. It responds with the version of the bot that wrote the data.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a map to all running bots on this node
func (*Service) Create ¶
func (s *Service) Create(botID string, botVersion int, name string, params map[string]string, pth string)
Create configures the Bot rpc instance
func (*Service) List ¶ added in v0.7.4
func (s *Service) List() *pb.ActiveBotList
List returns the id of all running bots
Click to show internal directories.
Click to hide internal directories.