Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_v1_meta_meta_proto protoreflect.FileDescriptor
var Meta_ServiceDesc = grpc.ServiceDesc{ ServiceName: "meta.v1.Meta", HandlerType: (*MetaServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Meta_Get_Handler, }, { MethodName: "Set", Handler: _Meta_Set_Handler, }, { MethodName: "Delete", Handler: _Meta_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/meta/meta.proto", }
Meta_ServiceDesc is the grpc.ServiceDesc for Meta service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetaServer ¶
func RegisterMetaServer(s grpc.ServiceRegistrar, srv MetaServer)
Types ¶
type MetaClient ¶
type MetaClient interface { Get(ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption) (*payload.Meta_Value, error) Set(ctx context.Context, in *payload.Meta_KeyValue, opts ...grpc.CallOption) (*payload.Empty, error) Delete(ctx context.Context, in *payload.Meta_Key, opts ...grpc.CallOption) (*payload.Empty, error) }
MetaClient is the client API for Meta 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.
func NewMetaClient ¶
func NewMetaClient(cc grpc.ClientConnInterface) MetaClient
type MetaServer ¶
type MetaServer interface { Get(context.Context, *payload.Meta_Key) (*payload.Meta_Value, error) Set(context.Context, *payload.Meta_KeyValue) (*payload.Empty, error) Delete(context.Context, *payload.Meta_Key) (*payload.Empty, error) // contains filtered or unexported methods }
MetaServer is the server API for Meta service. All implementations must embed UnimplementedMetaServer for forward compatibility
type UnimplementedMetaServer ¶
type UnimplementedMetaServer struct{}
UnimplementedMetaServer must be embedded to have forward compatible implementations.
func (UnimplementedMetaServer) Get ¶ added in v1.7.14
func (UnimplementedMetaServer) Get( context.Context, *payload.Meta_Key, ) (*payload.Meta_Value, error)
func (UnimplementedMetaServer) Set ¶ added in v1.7.14
func (UnimplementedMetaServer) Set( context.Context, *payload.Meta_KeyValue, ) (*payload.Empty, error)
type UnsafeMetaServer ¶ added in v1.7.14
type UnsafeMetaServer interface {
// contains filtered or unexported methods
}
UnsafeMetaServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetaServer will result in compilation errors.