keymaster

package
v0.0.0-...-7fd4116 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDStashServer

func RegisterDStashServer(s *grpc.Server, srv DStashServer)

Types

type DStashClient

type DStashClient interface {
	Put(ctx context.Context, in *KVPair, opts ...grpc.CallOption) (*empty.Empty, error)
	BatchPut(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchPutClient, error)
	Lookup(ctx context.Context, in *KVPair, opts ...grpc.CallOption) (*KVPair, error)
	BatchLookup(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchLookupClient, error)
	Items(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (DStash_ItemsClient, error)
	Status(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*StatusMessage, error)
	BatchIndex(ctx context.Context, opts ...grpc.CallOption) (DStash_BatchIndexClient, error)
	Search(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (DStash_SearchClient, error)
}

DStashClient is the client API for DStash service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDStashClient

func NewDStashClient(cc *grpc.ClientConn) DStashClient

type DStashServer

DStashServer is the server API for DStash service.

type DStash_BatchIndexClient

type DStash_BatchIndexClient interface {
	Send(*wrappers.StringValue) error
	CloseAndRecv() (*empty.Empty, error)
	grpc.ClientStream
}

type DStash_BatchIndexServer

type DStash_BatchIndexServer interface {
	SendAndClose(*empty.Empty) error
	Recv() (*wrappers.StringValue, error)
	grpc.ServerStream
}

type DStash_BatchLookupClient

type DStash_BatchLookupClient interface {
	Send(*KVPair) error
	Recv() (*KVPair, error)
	grpc.ClientStream
}

type DStash_BatchLookupServer

type DStash_BatchLookupServer interface {
	Send(*KVPair) error
	Recv() (*KVPair, error)
	grpc.ServerStream
}

type DStash_BatchPutClient

type DStash_BatchPutClient interface {
	Send(*KVPair) error
	CloseAndRecv() (*empty.Empty, error)
	grpc.ClientStream
}

type DStash_BatchPutServer

type DStash_BatchPutServer interface {
	SendAndClose(*empty.Empty) error
	Recv() (*KVPair, error)
	grpc.ServerStream
}

type DStash_ItemsClient

type DStash_ItemsClient interface {
	Recv() (*KVPair, error)
	grpc.ClientStream
}

type DStash_ItemsServer

type DStash_ItemsServer interface {
	Send(*KVPair) error
	grpc.ServerStream
}

type DStash_SearchClient

type DStash_SearchClient interface {
	Recv() (*wrappers.UInt64Value, error)
	grpc.ClientStream
}

type DStash_SearchServer

type DStash_SearchServer interface {
	Send(*wrappers.UInt64Value) error
	grpc.ServerStream
}

type KVPair

type KVPair 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 (*KVPair) Descriptor

func (*KVPair) Descriptor() ([]byte, []int)

func (*KVPair) GetKey

func (m *KVPair) GetKey() []byte

func (*KVPair) GetValue

func (m *KVPair) GetValue() []byte

func (*KVPair) ProtoMessage

func (*KVPair) ProtoMessage()

func (*KVPair) Reset

func (m *KVPair) Reset()

func (*KVPair) String

func (m *KVPair) String() string

func (*KVPair) XXX_DiscardUnknown

func (m *KVPair) XXX_DiscardUnknown()

func (*KVPair) XXX_Marshal

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

func (*KVPair) XXX_Merge

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

func (*KVPair) XXX_Size

func (m *KVPair) XXX_Size() int

func (*KVPair) XXX_Unmarshal

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

type StatusMessage

type StatusMessage struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusMessage) Descriptor

func (*StatusMessage) Descriptor() ([]byte, []int)

func (*StatusMessage) GetStatus

func (m *StatusMessage) GetStatus() string

func (*StatusMessage) ProtoMessage

func (*StatusMessage) ProtoMessage()

func (*StatusMessage) Reset

func (m *StatusMessage) Reset()

func (*StatusMessage) String

func (m *StatusMessage) String() string

func (*StatusMessage) XXX_DiscardUnknown

func (m *StatusMessage) XXX_DiscardUnknown()

func (*StatusMessage) XXX_Marshal

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

func (*StatusMessage) XXX_Merge

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

func (*StatusMessage) XXX_Size

func (m *StatusMessage) XXX_Size() int

func (*StatusMessage) XXX_Unmarshal

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

type Success

type Success struct {
	Ok                   bool     `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Success) Descriptor

func (*Success) Descriptor() ([]byte, []int)

func (*Success) GetOk

func (m *Success) GetOk() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) Reset

func (m *Success) Reset()

func (*Success) String

func (m *Success) String() string

func (*Success) XXX_DiscardUnknown

func (m *Success) XXX_DiscardUnknown()

func (*Success) XXX_Marshal

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

func (*Success) XXX_Merge

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

func (*Success) XXX_Size

func (m *Success) XXX_Size() int

func (*Success) XXX_Unmarshal

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

type UnimplementedDStashServer

type UnimplementedDStashServer struct {
}

UnimplementedDStashServer can be embedded to have forward compatible implementations.

func (*UnimplementedDStashServer) BatchIndex

func (*UnimplementedDStashServer) BatchLookup

func (*UnimplementedDStashServer) BatchPut

func (*UnimplementedDStashServer) Items

func (*UnimplementedDStashServer) Lookup

func (*UnimplementedDStashServer) Put

func (*UnimplementedDStashServer) Search

func (*UnimplementedDStashServer) Status

Jump to

Keyboard shortcuts

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