v1

package
v0.2.61 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DocumentAPIService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "document.v1.DocumentAPIService",
	HandlerType: (*DocumentAPIServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _DocumentAPIService_Get_Handler,
		},
		{
			MethodName: "GetAllKeys",
			Handler:    _DocumentAPIService_GetAllKeys_Handler,
		},
		{
			MethodName: "Put",
			Handler:    _DocumentAPIService_Put_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _DocumentAPIService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "document-api/document/v1/document.proto",
}

DocumentAPIService_ServiceDesc is the grpc.ServiceDesc for DocumentAPIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_document_api_document_v1_document_proto protoreflect.FileDescriptor

Functions

func RegisterDocumentAPIServiceServer

func RegisterDocumentAPIServiceServer(s grpc.ServiceRegistrar, srv DocumentAPIServiceServer)

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 DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type DocumentAPIServiceClient

type DocumentAPIServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	GetAllKeys(ctx context.Context, in *GetAllKeysRequest, opts ...grpc.CallOption) (*GetAllKeysResponse, error)
	Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
}

DocumentAPIServiceClient is the client API for DocumentAPIService 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 DocumentAPIServiceServer

type DocumentAPIServiceServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	GetAllKeys(context.Context, *GetAllKeysRequest) (*GetAllKeysResponse, error)
	Put(context.Context, *PutRequest) (*PutResponse, error)
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// contains filtered or unexported methods
}

DocumentAPIServiceServer is the server API for DocumentAPIService service. All implementations must embed UnimplementedDocumentAPIServiceServer for forward compatibility

type GetAllKeysRequest

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

func (*GetAllKeysRequest) Descriptor deprecated

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

Deprecated: Use GetAllKeysRequest.ProtoReflect.Descriptor instead.

func (*GetAllKeysRequest) ProtoMessage

func (*GetAllKeysRequest) ProtoMessage()

func (*GetAllKeysRequest) ProtoReflect

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

func (*GetAllKeysRequest) Reset

func (x *GetAllKeysRequest) Reset()

func (*GetAllKeysRequest) String

func (x *GetAllKeysRequest) String() string

type GetAllKeysResponse

type GetAllKeysResponse struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllKeysResponse) Descriptor deprecated

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

Deprecated: Use GetAllKeysResponse.ProtoReflect.Descriptor instead.

func (*GetAllKeysResponse) GetKeys

func (x *GetAllKeysResponse) GetKeys() []string

func (*GetAllKeysResponse) ProtoMessage

func (*GetAllKeysResponse) ProtoMessage()

func (*GetAllKeysResponse) ProtoReflect

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

func (*GetAllKeysResponse) Reset

func (x *GetAllKeysResponse) Reset()

func (*GetAllKeysResponse) String

func (x *GetAllKeysResponse) String() string

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 GetResponse

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

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetValue

func (x *GetResponse) GetValue() string

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type PutRequest

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

func (*PutRequest) Descriptor deprecated

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

Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.

func (*PutRequest) GetKey

func (x *PutRequest) GetKey() string

func (*PutRequest) GetValue

func (x *PutRequest) GetValue() string

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) ProtoReflect

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

func (*PutRequest) Reset

func (x *PutRequest) Reset()

func (*PutRequest) String

func (x *PutRequest) String() string

type PutResponse

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

func (*PutResponse) Descriptor deprecated

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

Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) ProtoReflect

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

func (*PutResponse) Reset

func (x *PutResponse) Reset()

func (*PutResponse) String

func (x *PutResponse) String() string

type UnimplementedDocumentAPIServiceServer

type UnimplementedDocumentAPIServiceServer struct {
}

UnimplementedDocumentAPIServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDocumentAPIServiceServer) Delete

func (UnimplementedDocumentAPIServiceServer) Get

func (UnimplementedDocumentAPIServiceServer) GetAllKeys

func (UnimplementedDocumentAPIServiceServer) Put

type UnsafeDocumentAPIServiceServer

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

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

Directories

Path Synopsis
Package document_mock is a generated GoMock package.
Package document_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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