meta

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v1_meta_meta_proto protoreflect.FileDescriptor
View Source
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) Delete added in v1.7.14

func (UnimplementedMetaServer) Get added in v1.7.14

func (UnimplementedMetaServer) Set added in v1.7.14

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.

Jump to

Keyboard shortcuts

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