Documentation ¶
Index ¶
- type BotIpfsHandler
- type BotKVStore
- 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) 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 BotKVStore ¶
type BotKVStore struct {
// contains filtered or unexported fields
}
BotKVStore implements shared.BotStore. Extends it with BotID and BotVersion
func (BotKVStore) Delete ¶
func (kv BotKVStore) Delete(key string) (ok bool, err error)
Delete allows a bot to delete a value in the kv store
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
Click to show internal directories.
Click to hide internal directories.