Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
store.proto
It has these top-level messages:
Params Dict Store ShareRequest ShareReply ParamsRequest ParamsReply
Index ¶
- Variables
- func RegisterStoreProviderServer(s *grpc.Server, srv StoreProviderServer)
- type Dict
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMaxOutputBytes() int32
- func (m *Params) GetPad() bool
- func (m *Params) GetRowBytes() int32
- func (m *Params) GetSalt() []byte
- func (m *Params) GetSaltBytes() int32
- func (m *Params) GetTableLen() int32
- func (m *Params) GetTagBytes() int32
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) String() string
- type ParamsReply
- type ParamsRequest
- type ShareReply
- type ShareRequest
- type Store
- func (*Store) Descriptor() ([]byte, []int)
- func (m *Store) GetAdjList() []*Store_AdjList
- func (m *Store) GetDict() *Dict
- func (m *Store) GetNode() []int32
- func (m *Store) GetNodeCt() int32
- func (m *Store) GetSealed() [][]byte
- func (*Store) ProtoMessage()
- func (m *Store) Reset()
- func (m *Store) String() string
- type StoreProviderClient
- type StoreProviderError
- type StoreProviderServer
- type Store_AdjList
Constants ¶
This section is empty.
Variables ¶
View Source
var StoreProviderError_name = map[int32]string{
0: "OK",
1: "BAD_USER",
2: "INDEX",
3: "ITEM_NOT_FOUND",
}
View Source
var StoreProviderError_value = map[string]int32{
"OK": 0,
"BAD_USER": 1,
"INDEX": 2,
"ITEM_NOT_FOUND": 3,
}
Functions ¶
func RegisterStoreProviderServer ¶
func RegisterStoreProviderServer(s *grpc.Server, srv StoreProviderServer)
Types ¶
type Dict ¶
type Dict struct { Params *Params `protobuf:"bytes,1,opt,name=params" json:"params,omitempty"` Table []byte `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` Idx []int32 `protobuf:"varint,3,rep,packed,name=idx" json:"idx,omitempty"` }
A compressed representation of store.PubDict.
func (*Dict) Descriptor ¶
func (*Dict) ProtoMessage ¶
func (*Dict) ProtoMessage()
type Params ¶
type Params struct { TableLen int32 `protobuf:"varint,1,opt,name=table_len,json=tableLen" json:"table_len,omitempty"` MaxOutputBytes int32 `protobuf:"varint,2,opt,name=max_output_bytes,json=maxOutputBytes" json:"max_output_bytes,omitempty"` RowBytes int32 `protobuf:"varint,3,opt,name=row_bytes,json=rowBytes" json:"row_bytes,omitempty"` TagBytes int32 `protobuf:"varint,4,opt,name=tag_bytes,json=tagBytes" json:"tag_bytes,omitempty"` SaltBytes int32 `protobuf:"varint,5,opt,name=salt_bytes,json=saltBytes" json:"salt_bytes,omitempty"` Salt []byte `protobuf:"bytes,6,opt,name=salt,proto3" json:"salt,omitempty"` Pad bool `protobuf:"varint,7,opt,name=pad" json:"pad,omitempty"` }
Parameters needed by store.PubDict and store.PrivDict.
func (*Params) Descriptor ¶
func (*Params) GetMaxOutputBytes ¶
func (*Params) GetRowBytes ¶
func (*Params) GetSaltBytes ¶
func (*Params) GetTableLen ¶
func (*Params) GetTagBytes ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
type ParamsReply ¶
type ParamsReply struct { Params *Params `protobuf:"bytes,1,opt,name=params" json:"params,omitempty"` Error StoreProviderError `protobuf:"varint,2,opt,name=error,enum=pb.StoreProviderError" json:"error,omitempty"` }
The parameters response message.
func (*ParamsReply) Descriptor ¶
func (*ParamsReply) Descriptor() ([]byte, []int)
func (*ParamsReply) GetError ¶
func (m *ParamsReply) GetError() StoreProviderError
func (*ParamsReply) GetParams ¶
func (m *ParamsReply) GetParams() *Params
func (*ParamsReply) ProtoMessage ¶
func (*ParamsReply) ProtoMessage()
func (*ParamsReply) Reset ¶
func (m *ParamsReply) Reset()
func (*ParamsReply) String ¶
func (m *ParamsReply) String() string
type ParamsRequest ¶
type ParamsRequest struct {
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
}
The parameters request message.
func (*ParamsRequest) Descriptor ¶
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) GetUserId ¶
func (m *ParamsRequest) GetUserId() string
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶
func (m *ParamsRequest) Reset()
func (*ParamsRequest) String ¶
func (m *ParamsRequest) String() string
type ShareReply ¶
type ShareReply struct {}
The share response message.
func (*ShareReply) Descriptor ¶
func (*ShareReply) Descriptor() ([]byte, []int)
func (*ShareReply) GetError ¶
func (m *ShareReply) GetError() StoreProviderError
func (*ShareReply) GetPubShare ¶
func (m *ShareReply) GetPubShare() []byte
func (*ShareReply) ProtoMessage ¶
func (*ShareReply) ProtoMessage()
func (*ShareReply) Reset ¶
func (m *ShareReply) Reset()
func (*ShareReply) String ¶
func (m *ShareReply) String() string
type ShareRequest ¶
type ShareRequest struct {}
The share request message.
func (*ShareRequest) Descriptor ¶
func (*ShareRequest) Descriptor() ([]byte, []int)
func (*ShareRequest) GetUserId ¶
func (m *ShareRequest) GetUserId() string
func (*ShareRequest) GetX ¶
func (m *ShareRequest) GetX() int32
func (*ShareRequest) GetY ¶
func (m *ShareRequest) GetY() int32
func (*ShareRequest) ProtoMessage ¶
func (*ShareRequest) ProtoMessage()
func (*ShareRequest) Reset ¶
func (m *ShareRequest) Reset()
func (*ShareRequest) String ¶
func (m *ShareRequest) String() string
type Store ¶
type Store struct { AdjList []*Store_AdjList `protobuf:"bytes,1,rep,name=adj_list,json=adjList" json:"adj_list,omitempty"` Node []int32 `protobuf:"varint,2,rep,packed,name=node" json:"node,omitempty"` NodeCt int32 `protobuf:"varint,3,opt,name=node_ct,json=nodeCt" json:"node_ct,omitempty"` Sealed [][]byte `protobuf:"bytes,4,rep,name=sealed,proto3" json:"sealed,omitempty"` Dict *Dict `protobuf:"bytes,5,opt,name=dict" json:"dict,omitempty"` }
A compressed representation of store.PubStore.
func (*Store) Descriptor ¶
func (*Store) GetAdjList ¶
func (m *Store) GetAdjList() []*Store_AdjList
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
type StoreProviderClient ¶
type StoreProviderClient interface { GetParams(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsReply, error) }
func NewStoreProviderClient ¶
func NewStoreProviderClient(cc *grpc.ClientConn) StoreProviderClient
type StoreProviderError ¶
type StoreProviderError int32
Errors output by the remote procedure calls.
const ( StoreProviderError_OK StoreProviderError = 0 StoreProviderError_BAD_USER StoreProviderError = 1 StoreProviderError_INDEX StoreProviderError = 2 StoreProviderError_ITEM_NOT_FOUND StoreProviderError = 3 )
func (StoreProviderError) EnumDescriptor ¶
func (StoreProviderError) EnumDescriptor() ([]byte, []int)
func (StoreProviderError) String ¶
func (x StoreProviderError) String() string
type StoreProviderServer ¶
type StoreProviderServer interface { GetParams(context.Context, *ParamsRequest) (*ParamsReply, error) }
type Store_AdjList ¶
type Store_AdjList struct {
Edge []int32 `protobuf:"varint,1,rep,packed,name=edge" json:"edge,omitempty"`
}
func (*Store_AdjList) Descriptor ¶
func (*Store_AdjList) Descriptor() ([]byte, []int)
func (*Store_AdjList) GetEdge ¶
func (m *Store_AdjList) GetEdge() []int32
func (*Store_AdjList) ProtoMessage ¶
func (*Store_AdjList) ProtoMessage()
func (*Store_AdjList) Reset ¶
func (m *Store_AdjList) Reset()
func (*Store_AdjList) String ¶
func (m *Store_AdjList) String() string
Click to show internal directories.
Click to hide internal directories.