cfgpltfmgrpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPlatformService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cfgpltfmgrpc.ConfigPlatformService",
	HandlerType: (*ConfigPlatformServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "get",
			Handler:    _ConfigPlatformService_Get_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "watch",
			Handler:       _ConfigPlatformService_Watch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "cfgpltfmgrpc.proto",
}

ConfigPlatformService_ServiceDesc is the grpc.ServiceDesc for ConfigPlatformService 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_cfgpltfmgrpc_proto protoreflect.FileDescriptor

Functions

func RegisterConfigPlatformServiceServer

func RegisterConfigPlatformServiceServer(s grpc.ServiceRegistrar, srv ConfigPlatformServiceServer)

Types

type ConfigPlatformServiceClient

type ConfigPlatformServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ConfigPlatformService_WatchClient, error)
}

ConfigPlatformServiceClient is the client API for ConfigPlatformService 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 ConfigPlatformServiceServer

type ConfigPlatformServiceServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Watch(*WatchRequest, ConfigPlatformService_WatchServer) error
	// contains filtered or unexported methods
}

ConfigPlatformServiceServer is the server API for ConfigPlatformService service. All implementations must embed UnimplementedConfigPlatformServiceServer for forward compatibility

type ConfigPlatformService_WatchClient

type ConfigPlatformService_WatchClient interface {
	Recv() (*GetResponse, error)
	grpc.ClientStream
}

type ConfigPlatformService_WatchServer

type ConfigPlatformService_WatchServer interface {
	Send(*GetResponse) error
	grpc.ServerStream
}

type GetRequest

type GetRequest struct {
	Key  string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Camp int32  `protobuf:"varint,2,opt,name=camp,proto3" json:"camp,omitempty"` //0 全部 1 帝国 2 同盟
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetCamp

func (x *GetRequest) GetCamp() int32

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 {
	Code  int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Key   string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Camp  int32  `protobuf:"varint,3,opt,name=camp,proto3" json:"camp,omitempty"` //0 全部 1 帝国 2 同盟
	Value string `protobuf:"bytes,4,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) GetCamp

func (x *GetResponse) GetCamp() int32

func (*GetResponse) GetCode

func (x *GetResponse) GetCode() int32

func (*GetResponse) GetKey

func (x *GetResponse) GetKey() string

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 UnimplementedConfigPlatformServiceServer

type UnimplementedConfigPlatformServiceServer struct {
}

UnimplementedConfigPlatformServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedConfigPlatformServiceServer) Get

func (UnimplementedConfigPlatformServiceServer) Watch

type UnsafeConfigPlatformServiceServer

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

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

type WatchRequest

type WatchRequest struct {
	Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"` // 客户端标识
	// contains filtered or unexported fields
}

func (*WatchRequest) Descriptor deprecated

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

Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.

func (*WatchRequest) GetClient

func (x *WatchRequest) GetClient() string

func (*WatchRequest) ProtoMessage

func (*WatchRequest) ProtoMessage()

func (*WatchRequest) ProtoReflect

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

func (*WatchRequest) Reset

func (x *WatchRequest) Reset()

func (*WatchRequest) String

func (x *WatchRequest) String() string

Jump to

Keyboard shortcuts

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