pb

package
v0.0.0-...-f13fb15 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpcstore_proto protoreflect.FileDescriptor

Functions

func RegisterGRPCStoreServiceServer

func RegisterGRPCStoreServiceServer(s grpc.ServiceRegistrar, srv GRPCStoreServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetKey

func (x *DeleteRequest) GetKey() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

func (x *DeleteRequest) ProtoReflect() protoreflect.Message

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResult

type DeleteResult struct {
	// contains filtered or unexported fields
}

func (*DeleteResult) Descriptor deprecated

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

Deprecated: Use DeleteResult.ProtoReflect.Descriptor instead.

func (*DeleteResult) ProtoMessage

func (*DeleteResult) ProtoMessage()

func (*DeleteResult) ProtoReflect

func (x *DeleteResult) ProtoReflect() protoreflect.Message

func (*DeleteResult) Reset

func (x *DeleteResult) Reset()

func (*DeleteResult) String

func (x *DeleteResult) String() string

type GRPCStoreServiceClient

type GRPCStoreServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResult, error)
	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResult, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResult, error)
}

GRPCStoreServiceClient is the client API for GRPCStoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GRPCStoreServiceServer

type GRPCStoreServiceServer interface {
	Get(context.Context, *GetRequest) (*GetResult, error)
	Set(context.Context, *SetRequest) (*SetResult, error)
	Delete(context.Context, *DeleteRequest) (*DeleteResult, error)
	// contains filtered or unexported methods
}

GRPCStoreServiceServer is the server API for GRPCStoreService service. All implementations must embed UnimplementedGRPCStoreServiceServer for forward compatibility

type GetRequest

type GetRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetKey

func (x *GetRequest) GetKey() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

func (x *GetRequest) ProtoReflect() protoreflect.Message

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResult

type GetResult struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResult) Descriptor deprecated

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

Deprecated: Use GetResult.ProtoReflect.Descriptor instead.

func (*GetResult) GetValue

func (x *GetResult) GetValue() []byte

func (*GetResult) ProtoMessage

func (*GetResult) ProtoMessage()

func (*GetResult) ProtoReflect

func (x *GetResult) ProtoReflect() protoreflect.Message

func (*GetResult) Reset

func (x *GetResult) Reset()

func (*GetResult) String

func (x *GetResult) String() string

type SetRequest

type SetRequest struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetRequest) Descriptor deprecated

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

Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.

func (*SetRequest) GetKey

func (x *SetRequest) GetKey() string

func (*SetRequest) GetValue

func (x *SetRequest) GetValue() []byte

func (*SetRequest) ProtoMessage

func (*SetRequest) ProtoMessage()

func (*SetRequest) ProtoReflect

func (x *SetRequest) ProtoReflect() protoreflect.Message

func (*SetRequest) Reset

func (x *SetRequest) Reset()

func (*SetRequest) String

func (x *SetRequest) String() string

type SetResult

type SetResult struct {
	// contains filtered or unexported fields
}

func (*SetResult) Descriptor deprecated

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

Deprecated: Use SetResult.ProtoReflect.Descriptor instead.

func (*SetResult) ProtoMessage

func (*SetResult) ProtoMessage()

func (*SetResult) ProtoReflect

func (x *SetResult) ProtoReflect() protoreflect.Message

func (*SetResult) Reset

func (x *SetResult) Reset()

func (*SetResult) String

func (x *SetResult) String() string

type UnimplementedGRPCStoreServiceServer

type UnimplementedGRPCStoreServiceServer struct {
}

UnimplementedGRPCStoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGRPCStoreServiceServer) Delete

func (UnimplementedGRPCStoreServiceServer) Get

func (UnimplementedGRPCStoreServiceServer) Set

type UnsafeGRPCStoreServiceServer

type UnsafeGRPCStoreServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGRPCStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GRPCStoreServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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