Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Config_ServiceDesc = grpc.ServiceDesc{ ServiceName: "com.github.multimoml.main.Config", HandlerType: (*ConfigServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfig", Handler: _Config_GetConfig_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/proto/config.proto", }
Config_ServiceDesc is the grpc.ServiceDesc for Config service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_proto_config_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConfigServer ¶
func RegisterConfigServer(s grpc.ServiceRegistrar, srv ConfigServer)
Types ¶
type ConfigClient ¶
type ConfigClient interface {
GetConfig(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error)
}
ConfigClient is the client API for Config 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 NewConfigClient ¶
func NewConfigClient(cc grpc.ClientConnInterface) ConfigClient
type ConfigRequest ¶
type ConfigRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*ConfigRequest) Descriptor
deprecated
func (*ConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
func (*ConfigRequest) GetKey ¶
func (x *ConfigRequest) GetKey() string
func (*ConfigRequest) ProtoMessage ¶
func (*ConfigRequest) ProtoMessage()
func (*ConfigRequest) ProtoReflect ¶
func (x *ConfigRequest) ProtoReflect() protoreflect.Message
func (*ConfigRequest) Reset ¶
func (x *ConfigRequest) Reset()
func (*ConfigRequest) String ¶
func (x *ConfigRequest) String() string
type ConfigResponse ¶
type ConfigResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ConfigResponse) Descriptor
deprecated
func (*ConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigResponse.ProtoReflect.Descriptor instead.
func (*ConfigResponse) GetValue ¶
func (x *ConfigResponse) GetValue() string
func (*ConfigResponse) ProtoMessage ¶
func (*ConfigResponse) ProtoMessage()
func (*ConfigResponse) ProtoReflect ¶
func (x *ConfigResponse) ProtoReflect() protoreflect.Message
func (*ConfigResponse) Reset ¶
func (x *ConfigResponse) Reset()
func (*ConfigResponse) String ¶
func (x *ConfigResponse) String() string
type ConfigServer ¶
type ConfigServer interface { GetConfig(context.Context, *ConfigRequest) (*ConfigResponse, error) // contains filtered or unexported methods }
ConfigServer is the server API for Config service. All implementations must embed UnimplementedConfigServer for forward compatibility
type UnimplementedConfigServer ¶
type UnimplementedConfigServer struct { }
UnimplementedConfigServer must be embedded to have forward compatible implementations.
func (UnimplementedConfigServer) GetConfig ¶
func (UnimplementedConfigServer) GetConfig(context.Context, *ConfigRequest) (*ConfigResponse, error)
type UnsafeConfigServer ¶
type UnsafeConfigServer interface {
// contains filtered or unexported methods
}
UnsafeConfigServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigServer will result in compilation errors.