Documentation ¶
Index ¶
- func RegisterBotStoreServer(s *grpc.Server, srv BotStoreServer)
- func RegisterBotserviceServer(s *grpc.Server, srv BotserviceServer)
- func RegisterIpfsHandlerServer(s *grpc.Server, srv IpfsHandlerServer)
- type APIRequest
- func (*APIRequest) Descriptor() ([]byte, []int)
- func (m *APIRequest) GetData() []byte
- func (m *APIRequest) GetSetup() *ClientConfig
- func (*APIRequest) ProtoMessage()
- func (m *APIRequest) Reset()
- func (m *APIRequest) String() string
- func (m *APIRequest) XXX_DiscardUnknown()
- func (m *APIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *APIRequest) XXX_Merge(src proto.Message)
- func (m *APIRequest) XXX_Size() int
- func (m *APIRequest) XXX_Unmarshal(b []byte) error
- type APIRequestB
- func (*APIRequestB) Descriptor() ([]byte, []int)
- func (m *APIRequestB) GetBody() []byte
- func (m *APIRequestB) GetData() []byte
- func (m *APIRequestB) GetSetup() *ClientConfig
- func (*APIRequestB) ProtoMessage()
- func (m *APIRequestB) Reset()
- func (m *APIRequestB) String() string
- func (m *APIRequestB) XXX_DiscardUnknown()
- func (m *APIRequestB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *APIRequestB) XXX_Merge(src proto.Message)
- func (m *APIRequestB) XXX_Size() int
- func (m *APIRequestB) XXX_Unmarshal(b []byte) error
- type ActiveBot
- func (*ActiveBot) Descriptor() ([]byte, []int)
- func (m *ActiveBot) GetId() string
- func (m *ActiveBot) GetName() string
- func (m *ActiveBot) GetParams() map[string]string
- func (*ActiveBot) ProtoMessage()
- func (m *ActiveBot) Reset()
- func (m *ActiveBot) String() string
- func (m *ActiveBot) XXX_DiscardUnknown()
- func (m *ActiveBot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActiveBot) XXX_Merge(src proto.Message)
- func (m *ActiveBot) XXX_Size() int
- func (m *ActiveBot) XXX_Unmarshal(b []byte) error
- type ActiveBotList
- func (*ActiveBotList) Descriptor() ([]byte, []int)
- func (m *ActiveBotList) GetItems() []*ActiveBot
- func (*ActiveBotList) ProtoMessage()
- func (m *ActiveBotList) Reset()
- func (m *ActiveBotList) String() string
- func (m *ActiveBotList) XXX_DiscardUnknown()
- func (m *ActiveBotList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActiveBotList) XXX_Merge(src proto.Message)
- func (m *ActiveBotList) XXX_Size() int
- func (m *ActiveBotList) XXX_Unmarshal(b []byte) error
- type AddData
- func (*AddData) Descriptor() ([]byte, []int)
- func (m *AddData) GetData() []byte
- func (m *AddData) GetEncrypt() bool
- func (*AddData) ProtoMessage()
- func (m *AddData) Reset()
- func (m *AddData) String() string
- func (m *AddData) XXX_DiscardUnknown()
- func (m *AddData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddData) XXX_Merge(src proto.Message)
- func (m *AddData) XXX_Size() int
- func (m *AddData) XXX_Unmarshal(b []byte) error
- type BotResponse
- func (*BotResponse) Descriptor() ([]byte, []int)
- func (m *BotResponse) GetBody() []byte
- func (m *BotResponse) GetContentType() string
- func (m *BotResponse) GetStatus() int32
- func (*BotResponse) ProtoMessage()
- func (m *BotResponse) Reset()
- func (m *BotResponse) String() string
- func (m *BotResponse) XXX_DiscardUnknown()
- func (m *BotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BotResponse) XXX_Merge(src proto.Message)
- func (m *BotResponse) XXX_Size() int
- func (m *BotResponse) XXX_Unmarshal(b []byte) error
- type BotStoreClient
- type BotStoreServer
- type BotserviceClient
- type BotserviceServer
- type ByteData
- func (*ByteData) Descriptor() ([]byte, []int)
- func (m *ByteData) GetData() []byte
- func (*ByteData) ProtoMessage()
- func (m *ByteData) Reset()
- func (m *ByteData) String() string
- func (m *ByteData) XXX_DiscardUnknown()
- func (m *ByteData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ByteData) XXX_Merge(src proto.Message)
- func (m *ByteData) XXX_Size() int
- func (m *ByteData) XXX_Unmarshal(b []byte) error
- type ClientConfig
- func (*ClientConfig) Descriptor() ([]byte, []int)
- func (m *ClientConfig) GetBotStoreServer() uint32
- func (m *ClientConfig) GetIpfsHandlerServer() uint32
- func (m *ClientConfig) GetParams() map[string]string
- func (*ClientConfig) ProtoMessage()
- func (m *ClientConfig) Reset()
- func (m *ClientConfig) String() string
- func (m *ClientConfig) XXX_DiscardUnknown()
- func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientConfig) XXX_Merge(src proto.Message)
- func (m *ClientConfig) XXX_Size() int
- func (m *ClientConfig) XXX_Unmarshal(b []byte) error
- type DatastoreKey
- func (*DatastoreKey) Descriptor() ([]byte, []int)
- func (m *DatastoreKey) GetStruct() *StructKey
- func (*DatastoreKey) ProtoMessage()
- func (m *DatastoreKey) Reset()
- func (m *DatastoreKey) String() string
- func (m *DatastoreKey) XXX_DiscardUnknown()
- func (m *DatastoreKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatastoreKey) XXX_Merge(src proto.Message)
- func (m *DatastoreKey) XXX_Size() int
- func (m *DatastoreKey) XXX_Unmarshal(b []byte) error
- type DatastoreKeyValue
- func (*DatastoreKeyValue) Descriptor() ([]byte, []int)
- func (m *DatastoreKeyValue) GetKey() string
- func (m *DatastoreKeyValue) GetValue() []byte
- func (*DatastoreKeyValue) ProtoMessage()
- func (m *DatastoreKeyValue) Reset()
- func (m *DatastoreKeyValue) String() string
- func (m *DatastoreKeyValue) XXX_DiscardUnknown()
- func (m *DatastoreKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatastoreKeyValue) XXX_Merge(src proto.Message)
- func (m *DatastoreKeyValue) XXX_Size() int
- func (m *DatastoreKeyValue) XXX_Unmarshal(b []byte) error
- type DatastoreSize
- func (*DatastoreSize) Descriptor() ([]byte, []int)
- func (m *DatastoreSize) GetSize() int32
- func (*DatastoreSize) ProtoMessage()
- func (m *DatastoreSize) Reset()
- func (m *DatastoreSize) String() string
- func (m *DatastoreSize) XXX_DiscardUnknown()
- func (m *DatastoreSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatastoreSize) XXX_Merge(src proto.Message)
- func (m *DatastoreSize) XXX_Size() int
- func (m *DatastoreSize) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type Exists
- func (*Exists) Descriptor() ([]byte, []int)
- func (m *Exists) GetExists() bool
- func (*Exists) ProtoMessage()
- func (m *Exists) Reset()
- func (m *Exists) String() string
- func (m *Exists) XXX_DiscardUnknown()
- func (m *Exists) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Exists) XXX_Merge(src proto.Message)
- func (m *Exists) XXX_Size() int
- func (m *Exists) XXX_Unmarshal(b []byte) error
- type GetData
- func (*GetData) Descriptor() ([]byte, []int)
- func (m *GetData) GetKey() string
- func (m *GetData) GetPath() string
- func (*GetData) ProtoMessage()
- func (m *GetData) Reset()
- func (m *GetData) String() string
- func (m *GetData) XXX_DiscardUnknown()
- func (m *GetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetData) XXX_Merge(src proto.Message)
- func (m *GetData) XXX_Size() int
- func (m *GetData) XXX_Unmarshal(b []byte) error
- type HostConfig
- func (*HostConfig) Descriptor() ([]byte, []int)
- func (m *HostConfig) GetId() string
- func (m *HostConfig) GetName() string
- func (m *HostConfig) GetParams() map[string]string
- func (m *HostConfig) GetReleaseHash() string
- func (m *HostConfig) GetReleaseVersion() string
- func (*HostConfig) ProtoMessage()
- func (m *HostConfig) Reset()
- func (m *HostConfig) String() string
- func (m *HostConfig) XXX_DiscardUnknown()
- func (m *HostConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostConfig) XXX_Merge(src proto.Message)
- func (m *HostConfig) XXX_Size() int
- func (m *HostConfig) XXX_Unmarshal(b []byte) error
- type IPFSPin
- func (*IPFSPin) Descriptor() ([]byte, []int)
- func (m *IPFSPin) GetHash() string
- func (m *IPFSPin) GetKey() string
- func (*IPFSPin) ProtoMessage()
- func (m *IPFSPin) Reset()
- func (m *IPFSPin) String() string
- func (m *IPFSPin) XXX_DiscardUnknown()
- func (m *IPFSPin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IPFSPin) XXX_Merge(src proto.Message)
- func (m *IPFSPin) XXX_Size() int
- func (m *IPFSPin) XXX_Unmarshal(b []byte) error
- type IpfsHandlerClient
- type IpfsHandlerServer
- type KeyValResponse
- func (*KeyValResponse) Descriptor() ([]byte, []int)
- func (m *KeyValResponse) GetData() []byte
- func (*KeyValResponse) ProtoMessage()
- func (m *KeyValResponse) Reset()
- func (m *KeyValResponse) String() string
- func (m *KeyValResponse) XXX_DiscardUnknown()
- func (m *KeyValResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValResponse) XXX_Merge(src proto.Message)
- func (m *KeyValResponse) XXX_Size() int
- func (m *KeyValResponse) XXX_Unmarshal(b []byte) error
- type StructKey
- func (*StructKey) Descriptor() ([]byte, []int)
- func (m *StructKey) GetKey() string
- func (*StructKey) ProtoMessage()
- func (m *StructKey) Reset()
- func (m *StructKey) String() string
- func (m *StructKey) XXX_DiscardUnknown()
- func (m *StructKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StructKey) XXX_Merge(src proto.Message)
- func (m *StructKey) XXX_Size() int
- func (m *StructKey) XXX_Unmarshal(b []byte) error
- type UnimplementedBotStoreServer
- func (*UnimplementedBotStoreServer) Close(ctx context.Context, req *Empty) (*Empty, error)
- func (*UnimplementedBotStoreServer) Delete(ctx context.Context, req *DatastoreKey) (*Empty, error)
- func (*UnimplementedBotStoreServer) Get(ctx context.Context, req *DatastoreKey) (*KeyValResponse, error)
- func (*UnimplementedBotStoreServer) GetSize(ctx context.Context, req *DatastoreKey) (*DatastoreSize, error)
- func (*UnimplementedBotStoreServer) Has(ctx context.Context, req *DatastoreKey) (*Exists, error)
- func (*UnimplementedBotStoreServer) Put(ctx context.Context, req *DatastoreKeyValue) (*Empty, error)
- type UnimplementedBotserviceServer
- func (*UnimplementedBotserviceServer) Delete(ctx context.Context, req *APIRequest) (*BotResponse, error)
- func (*UnimplementedBotserviceServer) Get(ctx context.Context, req *APIRequest) (*BotResponse, error)
- func (*UnimplementedBotserviceServer) Post(ctx context.Context, req *APIRequestB) (*BotResponse, error)
- func (*UnimplementedBotserviceServer) Put(ctx context.Context, req *APIRequestB) (*BotResponse, error)
- type UnimplementedIpfsHandlerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBotStoreServer ¶
func RegisterBotStoreServer(s *grpc.Server, srv BotStoreServer)
func RegisterBotserviceServer ¶
func RegisterBotserviceServer(s *grpc.Server, srv BotserviceServer)
func RegisterIpfsHandlerServer ¶
func RegisterIpfsHandlerServer(s *grpc.Server, srv IpfsHandlerServer)
Types ¶
type APIRequest ¶
type APIRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Setup *ClientConfig `protobuf:"bytes,2,opt,name=setup,proto3" json:"setup,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
APIRequest containing only a data request [GET, DELETE]
func (*APIRequest) Descriptor ¶
func (*APIRequest) Descriptor() ([]byte, []int)
func (*APIRequest) GetData ¶
func (m *APIRequest) GetData() []byte
func (*APIRequest) GetSetup ¶
func (m *APIRequest) GetSetup() *ClientConfig
func (*APIRequest) ProtoMessage ¶
func (*APIRequest) ProtoMessage()
func (*APIRequest) Reset ¶
func (m *APIRequest) Reset()
func (*APIRequest) String ¶
func (m *APIRequest) String() string
func (*APIRequest) XXX_DiscardUnknown ¶
func (m *APIRequest) XXX_DiscardUnknown()
func (*APIRequest) XXX_Marshal ¶
func (m *APIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*APIRequest) XXX_Merge ¶
func (m *APIRequest) XXX_Merge(src proto.Message)
func (*APIRequest) XXX_Size ¶
func (m *APIRequest) XXX_Size() int
func (*APIRequest) XXX_Unmarshal ¶
func (m *APIRequest) XXX_Unmarshal(b []byte) error
type APIRequestB ¶
type APIRequestB struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Setup *ClientConfig `protobuf:"bytes,3,opt,name=setup,proto3" json:"setup,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
APIRequestB containing only a body [POST, PUT]
func (*APIRequestB) Descriptor ¶
func (*APIRequestB) Descriptor() ([]byte, []int)
func (*APIRequestB) GetBody ¶
func (m *APIRequestB) GetBody() []byte
func (*APIRequestB) GetData ¶
func (m *APIRequestB) GetData() []byte
func (*APIRequestB) GetSetup ¶
func (m *APIRequestB) GetSetup() *ClientConfig
func (*APIRequestB) ProtoMessage ¶
func (*APIRequestB) ProtoMessage()
func (*APIRequestB) Reset ¶
func (m *APIRequestB) Reset()
func (*APIRequestB) String ¶
func (m *APIRequestB) String() string
func (*APIRequestB) XXX_DiscardUnknown ¶
func (m *APIRequestB) XXX_DiscardUnknown()
func (*APIRequestB) XXX_Marshal ¶
func (m *APIRequestB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*APIRequestB) XXX_Merge ¶
func (m *APIRequestB) XXX_Merge(src proto.Message)
func (*APIRequestB) XXX_Size ¶
func (m *APIRequestB) XXX_Size() int
func (*APIRequestB) XXX_Unmarshal ¶
func (m *APIRequestB) XXX_Unmarshal(b []byte) error
type ActiveBot ¶
type ActiveBot struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Params map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ActiveBot is the basic setup information about a running bot
func (*ActiveBot) Descriptor ¶
func (*ActiveBot) ProtoMessage ¶
func (*ActiveBot) ProtoMessage()
func (*ActiveBot) XXX_DiscardUnknown ¶
func (m *ActiveBot) XXX_DiscardUnknown()
func (*ActiveBot) XXX_Marshal ¶
func (*ActiveBot) XXX_Unmarshal ¶
type ActiveBotList ¶
type ActiveBotList struct { Items []*ActiveBot `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ActiveBotList a list of ActiveBot
func (*ActiveBotList) Descriptor ¶
func (*ActiveBotList) Descriptor() ([]byte, []int)
func (*ActiveBotList) GetItems ¶
func (m *ActiveBotList) GetItems() []*ActiveBot
func (*ActiveBotList) ProtoMessage ¶
func (*ActiveBotList) ProtoMessage()
func (*ActiveBotList) Reset ¶
func (m *ActiveBotList) Reset()
func (*ActiveBotList) String ¶
func (m *ActiveBotList) String() string
func (*ActiveBotList) XXX_DiscardUnknown ¶
func (m *ActiveBotList) XXX_DiscardUnknown()
func (*ActiveBotList) XXX_Marshal ¶
func (m *ActiveBotList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActiveBotList) XXX_Merge ¶
func (m *ActiveBotList) XXX_Merge(src proto.Message)
func (*ActiveBotList) XXX_Size ¶
func (m *ActiveBotList) XXX_Size() int
func (*ActiveBotList) XXX_Unmarshal ¶
func (m *ActiveBotList) XXX_Unmarshal(b []byte) error
type AddData ¶
type AddData struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Encrypt bool `protobuf:"varint,2,opt,name=encrypt,proto3" json:"encrypt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddData) Descriptor ¶
func (*AddData) GetEncrypt ¶
func (*AddData) ProtoMessage ¶
func (*AddData) ProtoMessage()
func (*AddData) XXX_DiscardUnknown ¶
func (m *AddData) XXX_DiscardUnknown()
func (*AddData) XXX_Marshal ¶
func (*AddData) XXX_Unmarshal ¶
type BotResponse ¶
type BotResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // allows bots to set response types dynamically ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response is the response for each request to a Bot
func (*BotResponse) Descriptor ¶
func (*BotResponse) Descriptor() ([]byte, []int)
func (*BotResponse) GetBody ¶
func (m *BotResponse) GetBody() []byte
func (*BotResponse) GetContentType ¶
func (m *BotResponse) GetContentType() string
func (*BotResponse) GetStatus ¶
func (m *BotResponse) GetStatus() int32
func (*BotResponse) ProtoMessage ¶
func (*BotResponse) ProtoMessage()
func (*BotResponse) Reset ¶
func (m *BotResponse) Reset()
func (*BotResponse) String ¶
func (m *BotResponse) String() string
func (*BotResponse) XXX_DiscardUnknown ¶
func (m *BotResponse) XXX_DiscardUnknown()
func (*BotResponse) XXX_Marshal ¶
func (m *BotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BotResponse) XXX_Merge ¶
func (m *BotResponse) XXX_Merge(src proto.Message)
func (*BotResponse) XXX_Size ¶
func (m *BotResponse) XXX_Size() int
func (*BotResponse) XXX_Unmarshal ¶
func (m *BotResponse) XXX_Unmarshal(b []byte) error
type BotStoreClient ¶
type BotStoreClient interface { Get(ctx context.Context, in *DatastoreKey, opts ...grpc.CallOption) (*KeyValResponse, error) Put(ctx context.Context, in *DatastoreKeyValue, opts ...grpc.CallOption) (*Empty, error) Delete(ctx context.Context, in *DatastoreKey, opts ...grpc.CallOption) (*Empty, error) Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) Has(ctx context.Context, in *DatastoreKey, opts ...grpc.CallOption) (*Exists, error) GetSize(ctx context.Context, in *DatastoreKey, opts ...grpc.CallOption) (*DatastoreSize, error) }
BotStoreClient is the client API for BotStore service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBotStoreClient ¶
func NewBotStoreClient(cc *grpc.ClientConn) BotStoreClient
type BotStoreServer ¶
type BotStoreServer interface { Get(context.Context, *DatastoreKey) (*KeyValResponse, error) Put(context.Context, *DatastoreKeyValue) (*Empty, error) Delete(context.Context, *DatastoreKey) (*Empty, error) Close(context.Context, *Empty) (*Empty, error) Has(context.Context, *DatastoreKey) (*Exists, error) GetSize(context.Context, *DatastoreKey) (*DatastoreSize, error) }
BotStoreServer is the server API for BotStore service.
type BotserviceClient ¶
type BotserviceClient interface { Post(ctx context.Context, in *APIRequestB, opts ...grpc.CallOption) (*BotResponse, error) Get(ctx context.Context, in *APIRequest, opts ...grpc.CallOption) (*BotResponse, error) Put(ctx context.Context, in *APIRequestB, opts ...grpc.CallOption) (*BotResponse, error) Delete(ctx context.Context, in *APIRequest, opts ...grpc.CallOption) (*BotResponse, error) }
BotserviceClient is the client API for Botservice service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBotserviceClient ¶
func NewBotserviceClient(cc *grpc.ClientConn) BotserviceClient
type BotserviceServer ¶
type BotserviceServer interface { Post(context.Context, *APIRequestB) (*BotResponse, error) Get(context.Context, *APIRequest) (*BotResponse, error) Put(context.Context, *APIRequestB) (*BotResponse, error) Delete(context.Context, *APIRequest) (*BotResponse, error) }
BotserviceServer is the server API for Botservice service.
type ByteData ¶
type ByteData struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ByteData) Descriptor ¶
func (*ByteData) ProtoMessage ¶
func (*ByteData) ProtoMessage()
func (*ByteData) XXX_DiscardUnknown ¶
func (m *ByteData) XXX_DiscardUnknown()
func (*ByteData) XXX_Marshal ¶
func (*ByteData) XXX_Unmarshal ¶
type ClientConfig ¶
type ClientConfig struct { BotStoreServer uint32 `protobuf:"varint,1,opt,name=bot_store_server,json=botStoreServer,proto3" json:"bot_store_server,omitempty"` IpfsHandlerServer uint32 `protobuf:"varint,2,opt,name=ipfs_handler_server,json=ipfsHandlerServer,proto3" json:"ipfs_handler_server,omitempty"` Params map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ClientConfig are the host managed elements shared with the client
func (*ClientConfig) Descriptor ¶
func (*ClientConfig) Descriptor() ([]byte, []int)
func (*ClientConfig) GetBotStoreServer ¶
func (m *ClientConfig) GetBotStoreServer() uint32
func (*ClientConfig) GetIpfsHandlerServer ¶
func (m *ClientConfig) GetIpfsHandlerServer() uint32
func (*ClientConfig) GetParams ¶
func (m *ClientConfig) GetParams() map[string]string
func (*ClientConfig) ProtoMessage ¶
func (*ClientConfig) ProtoMessage()
func (*ClientConfig) Reset ¶
func (m *ClientConfig) Reset()
func (*ClientConfig) String ¶
func (m *ClientConfig) String() string
func (*ClientConfig) XXX_DiscardUnknown ¶
func (m *ClientConfig) XXX_DiscardUnknown()
func (*ClientConfig) XXX_Marshal ¶
func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientConfig) XXX_Merge ¶
func (m *ClientConfig) XXX_Merge(src proto.Message)
func (*ClientConfig) XXX_Size ¶
func (m *ClientConfig) XXX_Size() int
func (*ClientConfig) XXX_Unmarshal ¶
func (m *ClientConfig) XXX_Unmarshal(b []byte) error
type DatastoreKey ¶
type DatastoreKey struct { Struct *StructKey `protobuf:"bytes,1,opt,name=struct,proto3" json:"struct,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DatastoreKey) Descriptor ¶
func (*DatastoreKey) Descriptor() ([]byte, []int)
func (*DatastoreKey) GetStruct ¶
func (m *DatastoreKey) GetStruct() *StructKey
func (*DatastoreKey) ProtoMessage ¶
func (*DatastoreKey) ProtoMessage()
func (*DatastoreKey) Reset ¶
func (m *DatastoreKey) Reset()
func (*DatastoreKey) String ¶
func (m *DatastoreKey) String() string
func (*DatastoreKey) XXX_DiscardUnknown ¶
func (m *DatastoreKey) XXX_DiscardUnknown()
func (*DatastoreKey) XXX_Marshal ¶
func (m *DatastoreKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatastoreKey) XXX_Merge ¶
func (m *DatastoreKey) XXX_Merge(src proto.Message)
func (*DatastoreKey) XXX_Size ¶
func (m *DatastoreKey) XXX_Size() int
func (*DatastoreKey) XXX_Unmarshal ¶
func (m *DatastoreKey) XXX_Unmarshal(b []byte) error
type DatastoreKeyValue ¶
type DatastoreKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DatastoreKeyValue) Descriptor ¶
func (*DatastoreKeyValue) Descriptor() ([]byte, []int)
func (*DatastoreKeyValue) GetKey ¶
func (m *DatastoreKeyValue) GetKey() string
func (*DatastoreKeyValue) GetValue ¶
func (m *DatastoreKeyValue) GetValue() []byte
func (*DatastoreKeyValue) ProtoMessage ¶
func (*DatastoreKeyValue) ProtoMessage()
func (*DatastoreKeyValue) Reset ¶
func (m *DatastoreKeyValue) Reset()
func (*DatastoreKeyValue) String ¶
func (m *DatastoreKeyValue) String() string
func (*DatastoreKeyValue) XXX_DiscardUnknown ¶
func (m *DatastoreKeyValue) XXX_DiscardUnknown()
func (*DatastoreKeyValue) XXX_Marshal ¶
func (m *DatastoreKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatastoreKeyValue) XXX_Merge ¶
func (m *DatastoreKeyValue) XXX_Merge(src proto.Message)
func (*DatastoreKeyValue) XXX_Size ¶
func (m *DatastoreKeyValue) XXX_Size() int
func (*DatastoreKeyValue) XXX_Unmarshal ¶
func (m *DatastoreKeyValue) XXX_Unmarshal(b []byte) error
type DatastoreSize ¶
type DatastoreSize struct { Size int32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DatastoreSize) Descriptor ¶
func (*DatastoreSize) Descriptor() ([]byte, []int)
func (*DatastoreSize) GetSize ¶
func (m *DatastoreSize) GetSize() int32
func (*DatastoreSize) ProtoMessage ¶
func (*DatastoreSize) ProtoMessage()
func (*DatastoreSize) Reset ¶
func (m *DatastoreSize) Reset()
func (*DatastoreSize) String ¶
func (m *DatastoreSize) String() string
func (*DatastoreSize) XXX_DiscardUnknown ¶
func (m *DatastoreSize) XXX_DiscardUnknown()
func (*DatastoreSize) XXX_Marshal ¶
func (m *DatastoreSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DatastoreSize) XXX_Merge ¶
func (m *DatastoreSize) XXX_Merge(src proto.Message)
func (*DatastoreSize) XXX_Size ¶
func (m *DatastoreSize) XXX_Size() int
func (*DatastoreSize) XXX_Unmarshal ¶
func (m *DatastoreSize) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type Exists ¶
type Exists struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Exists) Descriptor ¶
func (*Exists) ProtoMessage ¶
func (*Exists) ProtoMessage()
func (*Exists) XXX_DiscardUnknown ¶
func (m *Exists) XXX_DiscardUnknown()
func (*Exists) XXX_Marshal ¶
func (*Exists) XXX_Unmarshal ¶
type GetData ¶
type GetData struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetData) Descriptor ¶
func (*GetData) ProtoMessage ¶
func (*GetData) ProtoMessage()
func (*GetData) XXX_DiscardUnknown ¶
func (m *GetData) XXX_DiscardUnknown()
func (*GetData) XXX_Marshal ¶
func (*GetData) XXX_Unmarshal ¶
type HostConfig ¶
type HostConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` ReleaseVersion string `protobuf:"bytes,3,opt,name=release_version,json=releaseVersion,proto3" json:"release_version,omitempty"` ReleaseHash string `protobuf:"bytes,4,opt,name=release_hash,json=releaseHash,proto3" json:"release_hash,omitempty"` Params map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
HostConfig is the config file shared from the Bot to the host on init
func (*HostConfig) Descriptor ¶
func (*HostConfig) Descriptor() ([]byte, []int)
func (*HostConfig) GetId ¶
func (m *HostConfig) GetId() string
func (*HostConfig) GetName ¶
func (m *HostConfig) GetName() string
func (*HostConfig) GetParams ¶
func (m *HostConfig) GetParams() map[string]string
func (*HostConfig) GetReleaseHash ¶
func (m *HostConfig) GetReleaseHash() string
func (*HostConfig) GetReleaseVersion ¶
func (m *HostConfig) GetReleaseVersion() string
func (*HostConfig) ProtoMessage ¶
func (*HostConfig) ProtoMessage()
func (*HostConfig) Reset ¶
func (m *HostConfig) Reset()
func (*HostConfig) String ¶
func (m *HostConfig) String() string
func (*HostConfig) XXX_DiscardUnknown ¶
func (m *HostConfig) XXX_DiscardUnknown()
func (*HostConfig) XXX_Marshal ¶
func (m *HostConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostConfig) XXX_Merge ¶
func (m *HostConfig) XXX_Merge(src proto.Message)
func (*HostConfig) XXX_Size ¶
func (m *HostConfig) XXX_Size() int
func (*HostConfig) XXX_Unmarshal ¶
func (m *HostConfig) XXX_Unmarshal(b []byte) error
type IPFSPin ¶
type IPFSPin struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IPFSPin content hash // path and an optional ("" if nil) key for decryption
func (*IPFSPin) Descriptor ¶
func (*IPFSPin) ProtoMessage ¶
func (*IPFSPin) ProtoMessage()
func (*IPFSPin) XXX_DiscardUnknown ¶
func (m *IPFSPin) XXX_DiscardUnknown()
func (*IPFSPin) XXX_Marshal ¶
func (*IPFSPin) XXX_Unmarshal ¶
type IpfsHandlerClient ¶
type IpfsHandlerClient interface { Get(ctx context.Context, in *GetData, opts ...grpc.CallOption) (*ByteData, error) Add(ctx context.Context, in *AddData, opts ...grpc.CallOption) (*IPFSPin, error) }
IpfsHandlerClient is the client API for IpfsHandler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIpfsHandlerClient ¶
func NewIpfsHandlerClient(cc *grpc.ClientConn) IpfsHandlerClient
type IpfsHandlerServer ¶
type IpfsHandlerServer interface { Get(context.Context, *GetData) (*ByteData, error) Add(context.Context, *AddData) (*IPFSPin, error) }
IpfsHandlerServer is the server API for IpfsHandler service.
type KeyValResponse ¶
type KeyValResponse struct { // The value written at this Key Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyValResponse) Descriptor ¶
func (*KeyValResponse) Descriptor() ([]byte, []int)
func (*KeyValResponse) GetData ¶
func (m *KeyValResponse) GetData() []byte
func (*KeyValResponse) ProtoMessage ¶
func (*KeyValResponse) ProtoMessage()
func (*KeyValResponse) Reset ¶
func (m *KeyValResponse) Reset()
func (*KeyValResponse) String ¶
func (m *KeyValResponse) String() string
func (*KeyValResponse) XXX_DiscardUnknown ¶
func (m *KeyValResponse) XXX_DiscardUnknown()
func (*KeyValResponse) XXX_Marshal ¶
func (m *KeyValResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyValResponse) XXX_Merge ¶
func (m *KeyValResponse) XXX_Merge(src proto.Message)
func (*KeyValResponse) XXX_Size ¶
func (m *KeyValResponse) XXX_Size() int
func (*KeyValResponse) XXX_Unmarshal ¶
func (m *KeyValResponse) XXX_Unmarshal(b []byte) error
type StructKey ¶
type StructKey struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StructKey) Descriptor ¶
func (*StructKey) ProtoMessage ¶
func (*StructKey) ProtoMessage()
func (*StructKey) XXX_DiscardUnknown ¶
func (m *StructKey) XXX_DiscardUnknown()
func (*StructKey) XXX_Marshal ¶
func (*StructKey) XXX_Unmarshal ¶
type UnimplementedBotStoreServer ¶
type UnimplementedBotStoreServer struct { }
UnimplementedBotStoreServer can be embedded to have forward compatible implementations.
func (*UnimplementedBotStoreServer) Delete ¶
func (*UnimplementedBotStoreServer) Delete(ctx context.Context, req *DatastoreKey) (*Empty, error)
func (*UnimplementedBotStoreServer) Get ¶
func (*UnimplementedBotStoreServer) Get(ctx context.Context, req *DatastoreKey) (*KeyValResponse, error)
func (*UnimplementedBotStoreServer) GetSize ¶
func (*UnimplementedBotStoreServer) GetSize(ctx context.Context, req *DatastoreKey) (*DatastoreSize, error)
func (*UnimplementedBotStoreServer) Has ¶
func (*UnimplementedBotStoreServer) Has(ctx context.Context, req *DatastoreKey) (*Exists, error)
func (*UnimplementedBotStoreServer) Put ¶
func (*UnimplementedBotStoreServer) Put(ctx context.Context, req *DatastoreKeyValue) (*Empty, error)
type UnimplementedBotserviceServer ¶
type UnimplementedBotserviceServer struct { }
UnimplementedBotserviceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBotserviceServer) Delete ¶
func (*UnimplementedBotserviceServer) Delete(ctx context.Context, req *APIRequest) (*BotResponse, error)
func (*UnimplementedBotserviceServer) Get ¶
func (*UnimplementedBotserviceServer) Get(ctx context.Context, req *APIRequest) (*BotResponse, error)
func (*UnimplementedBotserviceServer) Post ¶
func (*UnimplementedBotserviceServer) Post(ctx context.Context, req *APIRequestB) (*BotResponse, error)
func (*UnimplementedBotserviceServer) Put ¶
func (*UnimplementedBotserviceServer) Put(ctx context.Context, req *APIRequestB) (*BotResponse, error)
type UnimplementedIpfsHandlerServer ¶
type UnimplementedIpfsHandlerServer struct { }
UnimplementedIpfsHandlerServer can be embedded to have forward compatible implementations.