pb

package
v0.0.0-...-43d270f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

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

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

func (*Dict) GetIdx

func (m *Dict) GetIdx() []int32

func (*Dict) GetParams

func (m *Dict) GetParams() *Params

func (*Dict) GetTable

func (m *Dict) GetTable() []byte

func (*Dict) ProtoMessage

func (*Dict) ProtoMessage()

func (*Dict) Reset

func (m *Dict) Reset()

func (*Dict) String

func (m *Dict) String() string

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

func (*Params) GetMaxOutputBytes

func (m *Params) GetMaxOutputBytes() int32

func (*Params) GetPad

func (m *Params) GetPad() bool

func (*Params) GetRowBytes

func (m *Params) GetRowBytes() int32

func (*Params) GetSalt

func (m *Params) GetSalt() []byte

func (*Params) GetSaltBytes

func (m *Params) GetSaltBytes() int32

func (*Params) GetTableLen

func (m *Params) GetTableLen() int32

func (*Params) GetTagBytes

func (m *Params) GetTagBytes() int32

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) String

func (m *Params) String() string

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 {
	PubShare []byte             `protobuf:"bytes,1,opt,name=pub_share,json=pubShare,proto3" json:"pub_share,omitempty"`
	Error    StoreProviderError `protobuf:"varint,2,opt,name=error,enum=pb.StoreProviderError" json:"error,omitempty"`
}

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 {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"`
	X      int32  `protobuf:"varint,2,opt,name=x" json:"x,omitempty"`
	Y      int32  `protobuf:"varint,3,opt,name=y" json:"y,omitempty"`
}

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

func (*Store) GetAdjList

func (m *Store) GetAdjList() []*Store_AdjList

func (*Store) GetDict

func (m *Store) GetDict() *Dict

func (*Store) GetNode

func (m *Store) GetNode() []int32

func (*Store) GetNodeCt

func (m *Store) GetNodeCt() int32

func (*Store) GetSealed

func (m *Store) GetSealed() [][]byte

func (*Store) ProtoMessage

func (*Store) ProtoMessage()

func (*Store) Reset

func (m *Store) Reset()

func (*Store) String

func (m *Store) String() string

type StoreProviderClient

type StoreProviderClient interface {
	GetShare(ctx context.Context, in *ShareRequest, opts ...grpc.CallOption) (*ShareReply, error)
	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 {
	GetShare(context.Context, *ShareRequest) (*ShareReply, error)
	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

Jump to

Keyboard shortcuts

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