Documentation
¶
Overview ¶
Package storage is a generated protocol buffer package.
It is generated from these files:
github.com/appcelerator/amp/api/rpc/storage/storage.proto
It has these top-level messages:
GetStorage DeleteStorage PutStorage ListStorage StorageResponse ListResponse StorageInfo StorageKey
Index ¶
- func RegisterStorageServer(s *grpc.Server, srv StorageServer)
- type DeleteStorage
- type GetStorage
- type ListResponse
- type ListStorage
- type PutStorage
- type Server
- func (s *Server) Delete(ctx context.Context, in *DeleteStorage) (*StorageResponse, error)
- func (s *Server) Get(ctx context.Context, in *GetStorage) (*StorageResponse, error)
- func (s *Server) List(ctx context.Context, in *ListStorage) (*ListResponse, error)
- func (s *Server) Put(ctx context.Context, in *PutStorage) (*StorageResponse, error)
- type StorageClient
- type StorageInfo
- type StorageKey
- type StorageResponse
- type StorageServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStorageServer ¶
func RegisterStorageServer(s *grpc.Server, srv StorageServer)
Types ¶
type DeleteStorage ¶
type DeleteStorage struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}
struct for delete storage request function
func (*DeleteStorage) Descriptor ¶
func (*DeleteStorage) Descriptor() ([]byte, []int)
func (*DeleteStorage) GetKey ¶
func (m *DeleteStorage) GetKey() string
func (*DeleteStorage) ProtoMessage ¶
func (*DeleteStorage) ProtoMessage()
func (*DeleteStorage) Reset ¶
func (m *DeleteStorage) Reset()
func (*DeleteStorage) String ¶
func (m *DeleteStorage) String() string
type GetStorage ¶
type GetStorage struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}
struct for get storage request function
func (*GetStorage) Descriptor ¶
func (*GetStorage) Descriptor() ([]byte, []int)
func (*GetStorage) GetKey ¶
func (m *GetStorage) GetKey() string
func (*GetStorage) ProtoMessage ¶
func (*GetStorage) ProtoMessage()
func (*GetStorage) Reset ¶
func (m *GetStorage) Reset()
func (*GetStorage) String ¶
func (m *GetStorage) String() string
type ListResponse ¶
type ListResponse struct {
List []*StorageInfo `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}
struct for list storage response function
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetList ¶
func (m *ListResponse) GetList() []*StorageInfo
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
type ListStorage ¶
type ListStorage struct {
}
struct for list storage request function
func (*ListStorage) Descriptor ¶
func (*ListStorage) Descriptor() ([]byte, []int)
func (*ListStorage) ProtoMessage ¶
func (*ListStorage) ProtoMessage()
func (*ListStorage) Reset ¶
func (m *ListStorage) Reset()
func (*ListStorage) String ¶
func (m *ListStorage) String() string
type PutStorage ¶
type PutStorage struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Val string `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"`
}
struct for put storage request function
func (*PutStorage) Descriptor ¶
func (*PutStorage) Descriptor() ([]byte, []int)
func (*PutStorage) GetKey ¶
func (m *PutStorage) GetKey() string
func (*PutStorage) GetVal ¶
func (m *PutStorage) GetVal() string
func (*PutStorage) ProtoMessage ¶
func (*PutStorage) ProtoMessage()
func (*PutStorage) Reset ¶
func (m *PutStorage) Reset()
func (*PutStorage) String ¶
func (m *PutStorage) String() string
type Server ¶
Server is used to implement storage service
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, in *DeleteStorage) (*StorageResponse, error)
Delete implements Server API for Storage service
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, in *GetStorage) (*StorageResponse, error)
Get implements Server API for Storage service
func (*Server) List ¶
func (s *Server) List(ctx context.Context, in *ListStorage) (*ListResponse, error)
List implements Server API for Storage service
func (*Server) Put ¶
func (s *Server) Put(ctx context.Context, in *PutStorage) (*StorageResponse, error)
Put implements Server API for Storage service
type StorageClient ¶
type StorageClient interface {
Put(ctx context.Context, in *PutStorage, opts ...grpc.CallOption) (*StorageResponse, error)
Get(ctx context.Context, in *GetStorage, opts ...grpc.CallOption) (*StorageResponse, error)
Delete(ctx context.Context, in *DeleteStorage, opts ...grpc.CallOption) (*StorageResponse, error)
List(ctx context.Context, in *ListStorage, opts ...grpc.CallOption) (*ListResponse, error)
}
func NewStorageClient ¶
func NewStorageClient(cc *grpc.ClientConn) StorageClient
type StorageInfo ¶
type StorageInfo struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Val string `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"`
}
struct part of ListResponse Struct
func (*StorageInfo) Descriptor ¶
func (*StorageInfo) Descriptor() ([]byte, []int)
func (*StorageInfo) GetKey ¶
func (m *StorageInfo) GetKey() string
func (*StorageInfo) GetVal ¶
func (m *StorageInfo) GetVal() string
func (*StorageInfo) ProtoMessage ¶
func (*StorageInfo) ProtoMessage()
func (*StorageInfo) Reset ¶
func (m *StorageInfo) Reset()
func (*StorageInfo) String ¶
func (m *StorageInfo) String() string
type StorageKey ¶
type StorageKey struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
}
struct to store Storage Key in ETCD
func (*StorageKey) Descriptor ¶
func (*StorageKey) Descriptor() ([]byte, []int)
func (*StorageKey) GetKey ¶
func (m *StorageKey) GetKey() string
func (*StorageKey) ProtoMessage ¶
func (*StorageKey) ProtoMessage()
func (*StorageKey) Reset ¶
func (m *StorageKey) Reset()
func (*StorageKey) String ¶
func (m *StorageKey) String() string
type StorageResponse ¶
type StorageResponse struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Val string `protobuf:"bytes,2,opt,name=val" json:"val,omitempty"`
}
struct for storage object key response
func (*StorageResponse) Descriptor ¶
func (*StorageResponse) Descriptor() ([]byte, []int)
func (*StorageResponse) GetKey ¶
func (m *StorageResponse) GetKey() string
func (*StorageResponse) GetVal ¶
func (m *StorageResponse) GetVal() string
func (*StorageResponse) ProtoMessage ¶
func (*StorageResponse) ProtoMessage()
func (*StorageResponse) Reset ¶
func (m *StorageResponse) Reset()
func (*StorageResponse) String ¶
func (m *StorageResponse) String() string
type StorageServer ¶
type StorageServer interface {
Put(context.Context, *PutStorage) (*StorageResponse, error)
Get(context.Context, *GetStorage) (*StorageResponse, error)
Delete(context.Context, *DeleteStorage) (*StorageResponse, error)
List(context.Context, *ListStorage) (*ListResponse, error)
}