Documentation
¶
Index ¶
- func RegisterImmuServiceServer(s *grpc.Server, srv ImmuServiceServer)
- type ConsistencyProof
- func (*ConsistencyProof) Descriptor() ([]byte, []int)
- func (m *ConsistencyProof) GetFirst() uint64
- func (m *ConsistencyProof) GetFirstRoot() []byte
- func (m *ConsistencyProof) GetPath() [][]byte
- func (m *ConsistencyProof) GetSecond() uint64
- func (m *ConsistencyProof) GetSecondRoot() []byte
- func (*ConsistencyProof) ProtoMessage()
- func (m *ConsistencyProof) Reset()
- func (m *ConsistencyProof) String() string
- func (c *ConsistencyProof) Verify(prevRoot Root) bool
- func (m *ConsistencyProof) XXX_DiscardUnknown()
- func (m *ConsistencyProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsistencyProof) XXX_Merge(src proto.Message)
- func (m *ConsistencyProof) XXX_Size() int
- func (m *ConsistencyProof) XXX_Unmarshal(b []byte) error
- type HealthResponse
- func (*HealthResponse) Descriptor() ([]byte, []int)
- func (m *HealthResponse) GetStatus() bool
- func (*HealthResponse) ProtoMessage()
- func (m *HealthResponse) Reset()
- func (m *HealthResponse) String() string
- func (m *HealthResponse) XXX_DiscardUnknown()
- func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthResponse) XXX_Merge(src proto.Message)
- func (m *HealthResponse) XXX_Size() int
- func (m *HealthResponse) XXX_Unmarshal(b []byte) error
- type ImmuServiceClient
- type ImmuServiceServer
- type InclusionProof
- func (*InclusionProof) Descriptor() ([]byte, []int)
- func (m *InclusionProof) GetAt() uint64
- func (m *InclusionProof) GetIndex() uint64
- func (m *InclusionProof) GetLeaf() []byte
- func (m *InclusionProof) GetPath() [][]byte
- func (m *InclusionProof) GetRoot() []byte
- func (*InclusionProof) ProtoMessage()
- func (m *InclusionProof) Reset()
- func (m *InclusionProof) String() string
- func (i *InclusionProof) Verify(index uint64, leaf []byte) bool
- func (m *InclusionProof) XXX_DiscardUnknown()
- func (m *InclusionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InclusionProof) XXX_Merge(src proto.Message)
- func (m *InclusionProof) XXX_Size() int
- func (m *InclusionProof) XXX_Unmarshal(b []byte) error
- type Index
- func (*Index) Descriptor() ([]byte, []int)
- func (m *Index) GetIndex() uint64
- func (*Index) ProtoMessage()
- func (m *Index) Reset()
- func (m *Index) String() string
- func (m *Index) XXX_DiscardUnknown()
- func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Index) XXX_Merge(src proto.Message)
- func (m *Index) XXX_Size() int
- func (m *Index) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetIndex() uint64
- func (m *Item) GetKey() []byte
- func (m *Item) GetValue() []byte
- func (i *Item) Hash() []byte
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) String() string
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type ItemList
- func (*ItemList) Descriptor() ([]byte, []int)
- func (m *ItemList) GetItems() []*Item
- func (*ItemList) ProtoMessage()
- func (m *ItemList) Reset()
- func (m *ItemList) String() string
- func (m *ItemList) XXX_DiscardUnknown()
- func (m *ItemList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ItemList) XXX_Merge(src proto.Message)
- func (m *ItemList) XXX_Size() int
- func (m *ItemList) XXX_Unmarshal(b []byte) error
- type ItemsCount
- func (*ItemsCount) Descriptor() ([]byte, []int)
- func (m *ItemsCount) GetCount() uint64
- func (*ItemsCount) ProtoMessage()
- func (m *ItemsCount) Reset()
- func (m *ItemsCount) String() string
- func (m *ItemsCount) XXX_DiscardUnknown()
- func (m *ItemsCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ItemsCount) XXX_Merge(src proto.Message)
- func (m *ItemsCount) XXX_Size() int
- func (m *ItemsCount) XXX_Unmarshal(b []byte) error
- type KVList
- func (*KVList) Descriptor() ([]byte, []int)
- func (m *KVList) GetKVs() []*KeyValue
- func (*KVList) ProtoMessage()
- func (m *KVList) Reset()
- func (m *KVList) String() string
- func (m *KVList) XXX_DiscardUnknown()
- func (m *KVList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KVList) XXX_Merge(src proto.Message)
- func (m *KVList) XXX_Size() int
- func (m *KVList) XXX_Unmarshal(b []byte) error
- type Key
- func (*Key) Descriptor() ([]byte, []int)
- func (m *Key) GetKey() []byte
- func (*Key) ProtoMessage()
- func (m *Key) Reset()
- func (m *Key) String() string
- func (m *Key) XXX_DiscardUnknown()
- func (m *Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Key) XXX_Merge(src proto.Message)
- func (m *Key) XXX_Size() int
- func (m *Key) XXX_Unmarshal(b []byte) error
- type KeyList
- func (*KeyList) Descriptor() ([]byte, []int)
- func (m *KeyList) GetKeys() []*Key
- func (*KeyList) ProtoMessage()
- func (m *KeyList) Reset()
- func (m *KeyList) String() string
- func (m *KeyList) XXX_DiscardUnknown()
- func (m *KeyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyList) XXX_Merge(src proto.Message)
- func (m *KeyList) XXX_Size() int
- func (m *KeyList) XXX_Unmarshal(b []byte) error
- type KeyPrefix
- func (*KeyPrefix) Descriptor() ([]byte, []int)
- func (m *KeyPrefix) GetPrefix() []byte
- func (*KeyPrefix) ProtoMessage()
- func (m *KeyPrefix) Reset()
- func (m *KeyPrefix) String() string
- func (m *KeyPrefix) XXX_DiscardUnknown()
- func (m *KeyPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyPrefix) XXX_Merge(src proto.Message)
- func (m *KeyPrefix) XXX_Size() int
- func (m *KeyPrefix) XXX_Unmarshal(b []byte) error
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) GetKey() []byte
- func (m *KeyValue) GetValue() []byte
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) String() string
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) GetAt() uint64
- func (m *Proof) GetConsistencyPath() [][]byte
- func (m *Proof) GetInclusionPath() [][]byte
- func (m *Proof) GetIndex() uint64
- func (m *Proof) GetLeaf() []byte
- func (m *Proof) GetRoot() []byte
- func (p *Proof) NewRoot() *Root
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) String() string
- func (p *Proof) Verify(leaf []byte, prevRoot Root) bool
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type Root
- func (*Root) Descriptor() ([]byte, []int)
- func (m *Root) GetIndex() uint64
- func (m *Root) GetRoot() []byte
- func (*Root) ProtoMessage()
- func (m *Root) Reset()
- func (m *Root) String() string
- func (m *Root) XXX_DiscardUnknown()
- func (m *Root) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Root) XXX_Merge(src proto.Message)
- func (m *Root) XXX_Size() int
- func (m *Root) XXX_Unmarshal(b []byte) error
- type SafeGetOptions
- func (*SafeGetOptions) Descriptor() ([]byte, []int)
- func (m *SafeGetOptions) GetKey() *Key
- func (m *SafeGetOptions) GetRootIndex() *Index
- func (*SafeGetOptions) ProtoMessage()
- func (m *SafeGetOptions) Reset()
- func (m *SafeGetOptions) String() string
- func (m *SafeGetOptions) XXX_DiscardUnknown()
- func (m *SafeGetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SafeGetOptions) XXX_Merge(src proto.Message)
- func (m *SafeGetOptions) XXX_Size() int
- func (m *SafeGetOptions) XXX_Unmarshal(b []byte) error
- type SafeItem
- func (*SafeItem) Descriptor() ([]byte, []int)
- func (m *SafeItem) GetItem() *Item
- func (m *SafeItem) GetProof() *Proof
- func (*SafeItem) ProtoMessage()
- func (m *SafeItem) Reset()
- func (m *SafeItem) String() string
- func (m *SafeItem) XXX_DiscardUnknown()
- func (m *SafeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SafeItem) XXX_Merge(src proto.Message)
- func (m *SafeItem) XXX_Size() int
- func (m *SafeItem) XXX_Unmarshal(b []byte) error
- type SafeSetOptions
- func (*SafeSetOptions) Descriptor() ([]byte, []int)
- func (m *SafeSetOptions) GetKv() *KeyValue
- func (m *SafeSetOptions) GetRootIndex() *Index
- func (*SafeSetOptions) ProtoMessage()
- func (m *SafeSetOptions) Reset()
- func (m *SafeSetOptions) String() string
- func (m *SafeSetOptions) XXX_DiscardUnknown()
- func (m *SafeSetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SafeSetOptions) XXX_Merge(src proto.Message)
- func (m *SafeSetOptions) XXX_Size() int
- func (m *SafeSetOptions) XXX_Unmarshal(b []byte) error
- type ScanOptions
- func (*ScanOptions) Descriptor() ([]byte, []int)
- func (m *ScanOptions) GetLimit() uint64
- func (m *ScanOptions) GetOffset() []byte
- func (m *ScanOptions) GetPrefix() []byte
- func (m *ScanOptions) GetReverse() bool
- func (*ScanOptions) ProtoMessage()
- func (m *ScanOptions) Reset()
- func (m *ScanOptions) String() string
- func (m *ScanOptions) XXX_DiscardUnknown()
- func (m *ScanOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScanOptions) XXX_Merge(src proto.Message)
- func (m *ScanOptions) XXX_Size() int
- func (m *ScanOptions) XXX_Unmarshal(b []byte) error
- type UnimplementedImmuServiceServer
- func (*UnimplementedImmuServiceServer) ByIndex(ctx context.Context, req *Index) (*Item, error)
- func (*UnimplementedImmuServiceServer) Consistency(ctx context.Context, req *Index) (*ConsistencyProof, error)
- func (*UnimplementedImmuServiceServer) Count(ctx context.Context, req *KeyPrefix) (*ItemsCount, error)
- func (*UnimplementedImmuServiceServer) CurrentRoot(ctx context.Context, req *empty.Empty) (*Root, error)
- func (*UnimplementedImmuServiceServer) Get(ctx context.Context, req *Key) (*Item, error)
- func (*UnimplementedImmuServiceServer) GetBatch(ctx context.Context, req *KeyList) (*ItemList, error)
- func (*UnimplementedImmuServiceServer) Health(ctx context.Context, req *empty.Empty) (*HealthResponse, error)
- func (*UnimplementedImmuServiceServer) History(ctx context.Context, req *Key) (*ItemList, error)
- func (*UnimplementedImmuServiceServer) Inclusion(ctx context.Context, req *Index) (*InclusionProof, error)
- func (*UnimplementedImmuServiceServer) SafeGet(ctx context.Context, req *SafeGetOptions) (*SafeItem, error)
- func (*UnimplementedImmuServiceServer) SafeSet(ctx context.Context, req *SafeSetOptions) (*Proof, error)
- func (*UnimplementedImmuServiceServer) Scan(ctx context.Context, req *ScanOptions) (*ItemList, error)
- func (*UnimplementedImmuServiceServer) Set(ctx context.Context, req *KeyValue) (*Index, error)
- func (*UnimplementedImmuServiceServer) SetBatch(ctx context.Context, req *KVList) (*Index, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterImmuServiceServer ¶
func RegisterImmuServiceServer(s *grpc.Server, srv ImmuServiceServer)
Types ¶
type ConsistencyProof ¶
type ConsistencyProof struct { First uint64 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` Second uint64 `protobuf:"varint,2,opt,name=second,proto3" json:"second,omitempty"` FirstRoot []byte `protobuf:"bytes,3,opt,name=firstRoot,proto3" json:"firstRoot,omitempty"` SecondRoot []byte `protobuf:"bytes,4,opt,name=secondRoot,proto3" json:"secondRoot,omitempty"` Path [][]byte `protobuf:"bytes,5,rep,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConsistencyProof) Descriptor ¶
func (*ConsistencyProof) Descriptor() ([]byte, []int)
func (*ConsistencyProof) GetFirst ¶
func (m *ConsistencyProof) GetFirst() uint64
func (*ConsistencyProof) GetFirstRoot ¶
func (m *ConsistencyProof) GetFirstRoot() []byte
func (*ConsistencyProof) GetPath ¶
func (m *ConsistencyProof) GetPath() [][]byte
func (*ConsistencyProof) GetSecond ¶
func (m *ConsistencyProof) GetSecond() uint64
func (*ConsistencyProof) GetSecondRoot ¶
func (m *ConsistencyProof) GetSecondRoot() []byte
func (*ConsistencyProof) ProtoMessage ¶
func (*ConsistencyProof) ProtoMessage()
func (*ConsistencyProof) Reset ¶
func (m *ConsistencyProof) Reset()
func (*ConsistencyProof) String ¶
func (m *ConsistencyProof) String() string
func (*ConsistencyProof) Verify ¶
func (c *ConsistencyProof) Verify(prevRoot Root) bool
Verify returns true iff the _ConsistencyProof_ proves that _c.SecondRoot_'s history is including the history of the provided _prevRoot_ up to the position _c.First_.
func (*ConsistencyProof) XXX_DiscardUnknown ¶
func (m *ConsistencyProof) XXX_DiscardUnknown()
func (*ConsistencyProof) XXX_Marshal ¶
func (m *ConsistencyProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsistencyProof) XXX_Merge ¶
func (m *ConsistencyProof) XXX_Merge(src proto.Message)
func (*ConsistencyProof) XXX_Size ¶
func (m *ConsistencyProof) XXX_Size() int
func (*ConsistencyProof) XXX_Unmarshal ¶
func (m *ConsistencyProof) XXX_Unmarshal(b []byte) error
type HealthResponse ¶
type HealthResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthResponse) Descriptor ¶
func (*HealthResponse) Descriptor() ([]byte, []int)
func (*HealthResponse) GetStatus ¶
func (m *HealthResponse) GetStatus() bool
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) Reset ¶
func (m *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (m *HealthResponse) String() string
func (*HealthResponse) XXX_DiscardUnknown ¶
func (m *HealthResponse) XXX_DiscardUnknown()
func (*HealthResponse) XXX_Marshal ¶
func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthResponse) XXX_Merge ¶
func (m *HealthResponse) XXX_Merge(src proto.Message)
func (*HealthResponse) XXX_Size ¶
func (m *HealthResponse) XXX_Size() int
func (*HealthResponse) XXX_Unmarshal ¶
func (m *HealthResponse) XXX_Unmarshal(b []byte) error
type ImmuServiceClient ¶
type ImmuServiceClient interface { Set(ctx context.Context, in *KeyValue, opts ...grpc.CallOption) (*Index, error) SafeSet(ctx context.Context, in *SafeSetOptions, opts ...grpc.CallOption) (*Proof, error) SetBatch(ctx context.Context, in *KVList, opts ...grpc.CallOption) (*Index, error) Get(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Item, error) SafeGet(ctx context.Context, in *SafeGetOptions, opts ...grpc.CallOption) (*SafeItem, error) GetBatch(ctx context.Context, in *KeyList, opts ...grpc.CallOption) (*ItemList, error) Scan(ctx context.Context, in *ScanOptions, opts ...grpc.CallOption) (*ItemList, error) Count(ctx context.Context, in *KeyPrefix, opts ...grpc.CallOption) (*ItemsCount, error) CurrentRoot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Root, error) Inclusion(ctx context.Context, in *Index, opts ...grpc.CallOption) (*InclusionProof, error) Consistency(ctx context.Context, in *Index, opts ...grpc.CallOption) (*ConsistencyProof, error) ByIndex(ctx context.Context, in *Index, opts ...grpc.CallOption) (*Item, error) History(ctx context.Context, in *Key, opts ...grpc.CallOption) (*ItemList, error) Health(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HealthResponse, error) }
ImmuServiceClient is the client API for ImmuService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewImmuServiceClient ¶
func NewImmuServiceClient(cc *grpc.ClientConn) ImmuServiceClient
type ImmuServiceServer ¶
type ImmuServiceServer interface { Set(context.Context, *KeyValue) (*Index, error) SafeSet(context.Context, *SafeSetOptions) (*Proof, error) SetBatch(context.Context, *KVList) (*Index, error) Get(context.Context, *Key) (*Item, error) SafeGet(context.Context, *SafeGetOptions) (*SafeItem, error) GetBatch(context.Context, *KeyList) (*ItemList, error) Scan(context.Context, *ScanOptions) (*ItemList, error) Count(context.Context, *KeyPrefix) (*ItemsCount, error) CurrentRoot(context.Context, *empty.Empty) (*Root, error) Inclusion(context.Context, *Index) (*InclusionProof, error) Consistency(context.Context, *Index) (*ConsistencyProof, error) ByIndex(context.Context, *Index) (*Item, error) History(context.Context, *Key) (*ItemList, error) Health(context.Context, *empty.Empty) (*HealthResponse, error) }
ImmuServiceServer is the server API for ImmuService service.
type InclusionProof ¶
type InclusionProof struct { At uint64 `protobuf:"varint,1,opt,name=at,proto3" json:"at,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` Leaf []byte `protobuf:"bytes,4,opt,name=leaf,proto3" json:"leaf,omitempty"` Path [][]byte `protobuf:"bytes,5,rep,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InclusionProof) Descriptor ¶
func (*InclusionProof) Descriptor() ([]byte, []int)
func (*InclusionProof) GetAt ¶
func (m *InclusionProof) GetAt() uint64
func (*InclusionProof) GetIndex ¶
func (m *InclusionProof) GetIndex() uint64
func (*InclusionProof) GetLeaf ¶
func (m *InclusionProof) GetLeaf() []byte
func (*InclusionProof) GetPath ¶
func (m *InclusionProof) GetPath() [][]byte
func (*InclusionProof) GetRoot ¶
func (m *InclusionProof) GetRoot() []byte
func (*InclusionProof) ProtoMessage ¶
func (*InclusionProof) ProtoMessage()
func (*InclusionProof) Reset ¶
func (m *InclusionProof) Reset()
func (*InclusionProof) String ¶
func (m *InclusionProof) String() string
func (*InclusionProof) Verify ¶
func (i *InclusionProof) Verify(index uint64, leaf []byte) bool
Verify returns true iff the _InclusionProof_ proves that _leaf_ is included into _i.Root_'s history at the given _index_. todo(leogr): can we use schema.Item instead of (index,leaf)?
func (*InclusionProof) XXX_DiscardUnknown ¶
func (m *InclusionProof) XXX_DiscardUnknown()
func (*InclusionProof) XXX_Marshal ¶
func (m *InclusionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InclusionProof) XXX_Merge ¶
func (m *InclusionProof) XXX_Merge(src proto.Message)
func (*InclusionProof) XXX_Size ¶
func (m *InclusionProof) XXX_Size() int
func (*InclusionProof) XXX_Unmarshal ¶
func (m *InclusionProof) XXX_Unmarshal(b []byte) error
type Index ¶
type Index struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Index) Descriptor ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) XXX_DiscardUnknown ¶
func (m *Index) XXX_DiscardUnknown()
func (*Index) XXX_Marshal ¶
func (*Index) XXX_Unmarshal ¶
type Item ¶
type Item struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type ItemList ¶
type ItemList struct { Items []*Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ItemList) Descriptor ¶
func (*ItemList) ProtoMessage ¶
func (*ItemList) ProtoMessage()
func (*ItemList) XXX_DiscardUnknown ¶
func (m *ItemList) XXX_DiscardUnknown()
func (*ItemList) XXX_Marshal ¶
func (*ItemList) XXX_Unmarshal ¶
type ItemsCount ¶
type ItemsCount struct { Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ItemsCount) Descriptor ¶
func (*ItemsCount) Descriptor() ([]byte, []int)
func (*ItemsCount) GetCount ¶
func (m *ItemsCount) GetCount() uint64
func (*ItemsCount) ProtoMessage ¶
func (*ItemsCount) ProtoMessage()
func (*ItemsCount) Reset ¶
func (m *ItemsCount) Reset()
func (*ItemsCount) String ¶
func (m *ItemsCount) String() string
func (*ItemsCount) XXX_DiscardUnknown ¶
func (m *ItemsCount) XXX_DiscardUnknown()
func (*ItemsCount) XXX_Marshal ¶
func (m *ItemsCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ItemsCount) XXX_Merge ¶
func (m *ItemsCount) XXX_Merge(src proto.Message)
func (*ItemsCount) XXX_Size ¶
func (m *ItemsCount) XXX_Size() int
func (*ItemsCount) XXX_Unmarshal ¶
func (m *ItemsCount) XXX_Unmarshal(b []byte) error
type KVList ¶
type KVList struct { KVs []*KeyValue `protobuf:"bytes,1,rep,name=KVs,proto3" json:"KVs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KVList) Descriptor ¶
func (*KVList) ProtoMessage ¶
func (*KVList) ProtoMessage()
func (*KVList) XXX_DiscardUnknown ¶
func (m *KVList) XXX_DiscardUnknown()
func (*KVList) XXX_Marshal ¶
func (*KVList) XXX_Unmarshal ¶
type Key ¶
type Key struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Key) Descriptor ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) XXX_DiscardUnknown ¶
func (m *Key) XXX_DiscardUnknown()
func (*Key) XXX_Unmarshal ¶
type KeyList ¶
type KeyList struct { Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyList) Descriptor ¶
func (*KeyList) ProtoMessage ¶
func (*KeyList) ProtoMessage()
func (*KeyList) XXX_DiscardUnknown ¶
func (m *KeyList) XXX_DiscardUnknown()
func (*KeyList) XXX_Marshal ¶
func (*KeyList) XXX_Unmarshal ¶
type KeyPrefix ¶
type KeyPrefix struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyPrefix) Descriptor ¶
func (*KeyPrefix) ProtoMessage ¶
func (*KeyPrefix) ProtoMessage()
func (*KeyPrefix) XXX_DiscardUnknown ¶
func (m *KeyPrefix) XXX_DiscardUnknown()
func (*KeyPrefix) XXX_Marshal ¶
func (*KeyPrefix) XXX_Unmarshal ¶
type KeyValue ¶
type KeyValue struct { Key []byte `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 (*KeyValue) Descriptor ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) XXX_DiscardUnknown ¶
func (m *KeyValue) XXX_DiscardUnknown()
func (*KeyValue) XXX_Marshal ¶
func (*KeyValue) XXX_Unmarshal ¶
type Proof ¶
type Proof struct { Leaf []byte `protobuf:"bytes,1,opt,name=leaf,proto3" json:"leaf,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` At uint64 `protobuf:"varint,4,opt,name=at,proto3" json:"at,omitempty"` InclusionPath [][]byte `protobuf:"bytes,5,rep,name=inclusionPath,proto3" json:"inclusionPath,omitempty"` ConsistencyPath [][]byte `protobuf:"bytes,6,rep,name=consistencyPath,proto3" json:"consistencyPath,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proof) Descriptor ¶
func (*Proof) GetConsistencyPath ¶
func (*Proof) GetInclusionPath ¶
func (*Proof) NewRoot ¶
NewRoot returns a new _Root_ object which holds values referenced by the proof _p_.
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) Verify ¶
Verify returns true iff the _Proof_ proves that the given _leaf_ is included into _p.Root_'s history at position _p.Index_ and that the provided _prevRoot_ is included into _p.Root_'s history. Providing a zerovalue for _prevRoot_ signals that no previous root is available, thus consistency proof will be skipped.
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
type Root ¶
type Root struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Root []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Root) Descriptor ¶
func (*Root) ProtoMessage ¶
func (*Root) ProtoMessage()
func (*Root) XXX_DiscardUnknown ¶
func (m *Root) XXX_DiscardUnknown()
func (*Root) XXX_Unmarshal ¶
type SafeGetOptions ¶
type SafeGetOptions struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` RootIndex *Index `protobuf:"bytes,2,opt,name=rootIndex,proto3" json:"rootIndex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SafeGetOptions) Descriptor ¶
func (*SafeGetOptions) Descriptor() ([]byte, []int)
func (*SafeGetOptions) GetKey ¶
func (m *SafeGetOptions) GetKey() *Key
func (*SafeGetOptions) GetRootIndex ¶
func (m *SafeGetOptions) GetRootIndex() *Index
func (*SafeGetOptions) ProtoMessage ¶
func (*SafeGetOptions) ProtoMessage()
func (*SafeGetOptions) Reset ¶
func (m *SafeGetOptions) Reset()
func (*SafeGetOptions) String ¶
func (m *SafeGetOptions) String() string
func (*SafeGetOptions) XXX_DiscardUnknown ¶
func (m *SafeGetOptions) XXX_DiscardUnknown()
func (*SafeGetOptions) XXX_Marshal ¶
func (m *SafeGetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SafeGetOptions) XXX_Merge ¶
func (m *SafeGetOptions) XXX_Merge(src proto.Message)
func (*SafeGetOptions) XXX_Size ¶
func (m *SafeGetOptions) XXX_Size() int
func (*SafeGetOptions) XXX_Unmarshal ¶
func (m *SafeGetOptions) XXX_Unmarshal(b []byte) error
type SafeItem ¶
type SafeItem struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` Proof *Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SafeItem) Descriptor ¶
func (*SafeItem) ProtoMessage ¶
func (*SafeItem) ProtoMessage()
func (*SafeItem) XXX_DiscardUnknown ¶
func (m *SafeItem) XXX_DiscardUnknown()
func (*SafeItem) XXX_Marshal ¶
func (*SafeItem) XXX_Unmarshal ¶
type SafeSetOptions ¶
type SafeSetOptions struct { Kv *KeyValue `protobuf:"bytes,1,opt,name=kv,proto3" json:"kv,omitempty"` RootIndex *Index `protobuf:"bytes,2,opt,name=rootIndex,proto3" json:"rootIndex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SafeSetOptions) Descriptor ¶
func (*SafeSetOptions) Descriptor() ([]byte, []int)
func (*SafeSetOptions) GetKv ¶
func (m *SafeSetOptions) GetKv() *KeyValue
func (*SafeSetOptions) GetRootIndex ¶
func (m *SafeSetOptions) GetRootIndex() *Index
func (*SafeSetOptions) ProtoMessage ¶
func (*SafeSetOptions) ProtoMessage()
func (*SafeSetOptions) Reset ¶
func (m *SafeSetOptions) Reset()
func (*SafeSetOptions) String ¶
func (m *SafeSetOptions) String() string
func (*SafeSetOptions) XXX_DiscardUnknown ¶
func (m *SafeSetOptions) XXX_DiscardUnknown()
func (*SafeSetOptions) XXX_Marshal ¶
func (m *SafeSetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SafeSetOptions) XXX_Merge ¶
func (m *SafeSetOptions) XXX_Merge(src proto.Message)
func (*SafeSetOptions) XXX_Size ¶
func (m *SafeSetOptions) XXX_Size() int
func (*SafeSetOptions) XXX_Unmarshal ¶
func (m *SafeSetOptions) XXX_Unmarshal(b []byte) error
type ScanOptions ¶
type ScanOptions struct { Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` Offset []byte `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Reverse bool `protobuf:"varint,4,opt,name=reverse,proto3" json:"reverse,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ScanOptions) Descriptor ¶
func (*ScanOptions) Descriptor() ([]byte, []int)
func (*ScanOptions) GetLimit ¶
func (m *ScanOptions) GetLimit() uint64
func (*ScanOptions) GetOffset ¶
func (m *ScanOptions) GetOffset() []byte
func (*ScanOptions) GetPrefix ¶
func (m *ScanOptions) GetPrefix() []byte
func (*ScanOptions) GetReverse ¶
func (m *ScanOptions) GetReverse() bool
func (*ScanOptions) ProtoMessage ¶
func (*ScanOptions) ProtoMessage()
func (*ScanOptions) Reset ¶
func (m *ScanOptions) Reset()
func (*ScanOptions) String ¶
func (m *ScanOptions) String() string
func (*ScanOptions) XXX_DiscardUnknown ¶
func (m *ScanOptions) XXX_DiscardUnknown()
func (*ScanOptions) XXX_Marshal ¶
func (m *ScanOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScanOptions) XXX_Merge ¶
func (m *ScanOptions) XXX_Merge(src proto.Message)
func (*ScanOptions) XXX_Size ¶
func (m *ScanOptions) XXX_Size() int
func (*ScanOptions) XXX_Unmarshal ¶
func (m *ScanOptions) XXX_Unmarshal(b []byte) error
type UnimplementedImmuServiceServer ¶
type UnimplementedImmuServiceServer struct { }
UnimplementedImmuServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedImmuServiceServer) Consistency ¶
func (*UnimplementedImmuServiceServer) Consistency(ctx context.Context, req *Index) (*ConsistencyProof, error)
func (*UnimplementedImmuServiceServer) Count ¶
func (*UnimplementedImmuServiceServer) Count(ctx context.Context, req *KeyPrefix) (*ItemsCount, error)
func (*UnimplementedImmuServiceServer) CurrentRoot ¶
func (*UnimplementedImmuServiceServer) Health ¶
func (*UnimplementedImmuServiceServer) Health(ctx context.Context, req *empty.Empty) (*HealthResponse, error)
func (*UnimplementedImmuServiceServer) Inclusion ¶
func (*UnimplementedImmuServiceServer) Inclusion(ctx context.Context, req *Index) (*InclusionProof, error)
func (*UnimplementedImmuServiceServer) SafeGet ¶
func (*UnimplementedImmuServiceServer) SafeGet(ctx context.Context, req *SafeGetOptions) (*SafeItem, error)
func (*UnimplementedImmuServiceServer) SafeSet ¶
func (*UnimplementedImmuServiceServer) SafeSet(ctx context.Context, req *SafeSetOptions) (*Proof, error)
func (*UnimplementedImmuServiceServer) Scan ¶
func (*UnimplementedImmuServiceServer) Scan(ctx context.Context, req *ScanOptions) (*ItemList, error)