Documentation ¶
Index ¶
- Variables
- func RegisterOperatorServer(s grpc.ServiceRegistrar, srv OperatorServer)
- type Empty
- type LogLevel
- type LogLevelConfig
- type OperatorClient
- type OperatorServer
- type UnimplementedOperatorServer
- type UnsafeOperatorServer
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetBuild() string
- func (x *Version) GetBuildDate() string
- func (x *Version) GetEdition() string
- func (x *Version) GetGoVersion() string
- func (x *Version) GetVersion() string
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
Constants ¶
This section is empty.
Variables ¶
var ( LogLevel_name = map[int32]string{ 0: "TRACE", 1: "DEBUG", 2: "INFO", 3: "WARN", 4: "ERROR", 5: "FATAL", } LogLevel_value = map[string]int32{ "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3, "ERROR": 4, "FATAL": 5, } )
Enum value maps for LogLevel.
var File_pkg_api_server_operator_proto protoreflect.FileDescriptor
var Operator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "server.Operator", HandlerType: (*OperatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _Operator_GetVersion_Handler, }, { MethodName: "GetLogLevel", Handler: _Operator_GetLogLevel_Handler, }, { MethodName: "SetLogLevel", Handler: _Operator_SetLogLevel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/api/server/operator.proto", }
Operator_ServiceDesc is the grpc.ServiceDesc for Operator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOperatorServer ¶
func RegisterOperatorServer(s grpc.ServiceRegistrar, srv OperatorServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type LogLevelConfig ¶
type LogLevelConfig struct { Topics map[string]LogLevel `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LogLevelConfig) Descriptor
deprecated
func (*LogLevelConfig) Descriptor() ([]byte, []int)
Deprecated: Use LogLevelConfig.ProtoReflect.Descriptor instead.
func (*LogLevelConfig) GetTopics ¶
func (x *LogLevelConfig) GetTopics() map[string]LogLevel
func (*LogLevelConfig) ProtoMessage ¶
func (*LogLevelConfig) ProtoMessage()
func (*LogLevelConfig) ProtoReflect ¶
func (x *LogLevelConfig) ProtoReflect() protoreflect.Message
func (*LogLevelConfig) Reset ¶
func (x *LogLevelConfig) Reset()
func (*LogLevelConfig) String ¶
func (x *LogLevelConfig) String() string
type OperatorClient ¶
type OperatorClient interface { GetVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Version, error) GetLogLevel(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LogLevelConfig, error) SetLogLevel(ctx context.Context, in *LogLevelConfig, opts ...grpc.CallOption) (*Empty, error) }
OperatorClient is the client API for Operator 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 NewOperatorClient ¶
func NewOperatorClient(cc grpc.ClientConnInterface) OperatorClient
type OperatorServer ¶
type OperatorServer interface { GetVersion(context.Context, *Empty) (*Version, error) GetLogLevel(context.Context, *Empty) (*LogLevelConfig, error) SetLogLevel(context.Context, *LogLevelConfig) (*Empty, error) // contains filtered or unexported methods }
OperatorServer is the server API for Operator service. All implementations must embed UnimplementedOperatorServer for forward compatibility
type UnimplementedOperatorServer ¶
type UnimplementedOperatorServer struct { }
UnimplementedOperatorServer must be embedded to have forward compatible implementations.
func (UnimplementedOperatorServer) GetLogLevel ¶
func (UnimplementedOperatorServer) GetLogLevel(context.Context, *Empty) (*LogLevelConfig, error)
func (UnimplementedOperatorServer) GetVersion ¶
func (UnimplementedOperatorServer) SetLogLevel ¶
func (UnimplementedOperatorServer) SetLogLevel(context.Context, *LogLevelConfig) (*Empty, error)
type UnsafeOperatorServer ¶
type UnsafeOperatorServer interface {
// contains filtered or unexported methods
}
UnsafeOperatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OperatorServer will result in compilation errors.
type Version ¶
type Version struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Build string `protobuf:"bytes,2,opt,name=build,proto3" json:"build,omitempty"` Edition string `protobuf:"bytes,3,opt,name=edition,proto3" json:"edition,omitempty"` GoVersion string `protobuf:"bytes,4,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` BuildDate string `protobuf:"bytes,5,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"` // contains filtered or unexported fields }
func (*Version) Descriptor
deprecated
func (*Version) GetBuildDate ¶
func (*Version) GetEdition ¶
func (*Version) GetGoVersion ¶
func (*Version) GetVersion ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message