pb

package
v0.0.0-...-31fc120 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 7 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*ActiveBot) GetId

func (m *ActiveBot) GetId() string

func (*ActiveBot) GetName

func (m *ActiveBot) GetName() string

func (*ActiveBot) GetParams

func (m *ActiveBot) GetParams() map[string]string

func (*ActiveBot) ProtoMessage

func (*ActiveBot) ProtoMessage()

func (*ActiveBot) Reset

func (m *ActiveBot) Reset()

func (*ActiveBot) String

func (m *ActiveBot) String() string

func (*ActiveBot) XXX_DiscardUnknown

func (m *ActiveBot) XXX_DiscardUnknown()

func (*ActiveBot) XXX_Marshal

func (m *ActiveBot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActiveBot) XXX_Merge

func (m *ActiveBot) XXX_Merge(src proto.Message)

func (*ActiveBot) XXX_Size

func (m *ActiveBot) XXX_Size() int

func (*ActiveBot) XXX_Unmarshal

func (m *ActiveBot) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*AddData) GetData

func (m *AddData) GetData() []byte

func (*AddData) GetEncrypt

func (m *AddData) GetEncrypt() bool

func (*AddData) ProtoMessage

func (*AddData) ProtoMessage()

func (*AddData) Reset

func (m *AddData) Reset()

func (*AddData) String

func (m *AddData) String() string

func (*AddData) XXX_DiscardUnknown

func (m *AddData) XXX_DiscardUnknown()

func (*AddData) XXX_Marshal

func (m *AddData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddData) XXX_Merge

func (m *AddData) XXX_Merge(src proto.Message)

func (*AddData) XXX_Size

func (m *AddData) XXX_Size() int

func (*AddData) XXX_Unmarshal

func (m *AddData) XXX_Unmarshal(b []byte) error

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

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

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) Descriptor() ([]byte, []int)

func (*ByteData) GetData

func (m *ByteData) GetData() []byte

func (*ByteData) ProtoMessage

func (*ByteData) ProtoMessage()

func (*ByteData) Reset

func (m *ByteData) Reset()

func (*ByteData) String

func (m *ByteData) String() string

func (*ByteData) XXX_DiscardUnknown

func (m *ByteData) XXX_DiscardUnknown()

func (*ByteData) XXX_Marshal

func (m *ByteData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ByteData) XXX_Merge

func (m *ByteData) XXX_Merge(src proto.Message)

func (*ByteData) XXX_Size

func (m *ByteData) XXX_Size() int

func (*ByteData) XXX_Unmarshal

func (m *ByteData) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Exists) GetExists

func (m *Exists) GetExists() bool

func (*Exists) ProtoMessage

func (*Exists) ProtoMessage()

func (*Exists) Reset

func (m *Exists) Reset()

func (*Exists) String

func (m *Exists) String() string

func (*Exists) XXX_DiscardUnknown

func (m *Exists) XXX_DiscardUnknown()

func (*Exists) XXX_Marshal

func (m *Exists) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Exists) XXX_Merge

func (m *Exists) XXX_Merge(src proto.Message)

func (*Exists) XXX_Size

func (m *Exists) XXX_Size() int

func (*Exists) XXX_Unmarshal

func (m *Exists) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*GetData) GetKey

func (m *GetData) GetKey() string

func (*GetData) GetPath

func (m *GetData) GetPath() string

func (*GetData) ProtoMessage

func (*GetData) ProtoMessage()

func (*GetData) Reset

func (m *GetData) Reset()

func (*GetData) String

func (m *GetData) String() string

func (*GetData) XXX_DiscardUnknown

func (m *GetData) XXX_DiscardUnknown()

func (*GetData) XXX_Marshal

func (m *GetData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetData) XXX_Merge

func (m *GetData) XXX_Merge(src proto.Message)

func (*GetData) XXX_Size

func (m *GetData) XXX_Size() int

func (*GetData) XXX_Unmarshal

func (m *GetData) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*IPFSPin) GetHash

func (m *IPFSPin) GetHash() string

func (*IPFSPin) GetKey

func (m *IPFSPin) GetKey() string

func (*IPFSPin) ProtoMessage

func (*IPFSPin) ProtoMessage()

func (*IPFSPin) Reset

func (m *IPFSPin) Reset()

func (*IPFSPin) String

func (m *IPFSPin) String() string

func (*IPFSPin) XXX_DiscardUnknown

func (m *IPFSPin) XXX_DiscardUnknown()

func (*IPFSPin) XXX_Marshal

func (m *IPFSPin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPFSPin) XXX_Merge

func (m *IPFSPin) XXX_Merge(src proto.Message)

func (*IPFSPin) XXX_Size

func (m *IPFSPin) XXX_Size() int

func (*IPFSPin) XXX_Unmarshal

func (m *IPFSPin) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*StructKey) GetKey

func (m *StructKey) GetKey() string

func (*StructKey) ProtoMessage

func (*StructKey) ProtoMessage()

func (*StructKey) Reset

func (m *StructKey) Reset()

func (*StructKey) String

func (m *StructKey) String() string

func (*StructKey) XXX_DiscardUnknown

func (m *StructKey) XXX_DiscardUnknown()

func (*StructKey) XXX_Marshal

func (m *StructKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StructKey) XXX_Merge

func (m *StructKey) XXX_Merge(src proto.Message)

func (*StructKey) XXX_Size

func (m *StructKey) XXX_Size() int

func (*StructKey) XXX_Unmarshal

func (m *StructKey) XXX_Unmarshal(b []byte) error

type UnimplementedBotStoreServer

type UnimplementedBotStoreServer struct {
}

UnimplementedBotStoreServer can be embedded to have forward compatible implementations.

func (*UnimplementedBotStoreServer) Close

func (*UnimplementedBotStoreServer) Delete

func (*UnimplementedBotStoreServer) Get

func (*UnimplementedBotStoreServer) GetSize

func (*UnimplementedBotStoreServer) Has

func (*UnimplementedBotStoreServer) Put

type UnimplementedBotserviceServer

type UnimplementedBotserviceServer struct {
}

UnimplementedBotserviceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBotserviceServer) Delete

func (*UnimplementedBotserviceServer) Get

func (*UnimplementedBotserviceServer) Post

func (*UnimplementedBotserviceServer) Put

type UnimplementedIpfsHandlerServer

type UnimplementedIpfsHandlerServer struct {
}

UnimplementedIpfsHandlerServer can be embedded to have forward compatible implementations.

func (*UnimplementedIpfsHandlerServer) Add

func (*UnimplementedIpfsHandlerServer) Get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL