Documentation ¶
Index ¶
- Variables
- func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)
- type LoggerClient
- type LoggerRequest
- func (*LoggerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoggerRequest) GetLevel() string
- func (x *LoggerRequest) GetMsg() string
- func (x *LoggerRequest) GetResourceID() string
- func (x *LoggerRequest) GetTimestamp() string
- func (*LoggerRequest) ProtoMessage()
- func (x *LoggerRequest) ProtoReflect() protoreflect.Message
- func (x *LoggerRequest) Reset()
- func (x *LoggerRequest) String() string
- type LoggerResponse
- type LoggerServer
- type UnimplementedLoggerServer
- type UnsafeLoggerServer
Constants ¶
This section is empty.
Variables ¶
var File_kataposis_proto protoreflect.FileDescriptor
var Logger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "logger.Logger", HandlerType: (*LoggerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Log", Handler: _Logger_Log_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kataposis.proto", }
Logger_ServiceDesc is the grpc.ServiceDesc for Logger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLoggerServer ¶
func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)
Types ¶
type LoggerClient ¶
type LoggerClient interface {
Log(ctx context.Context, in *LoggerRequest, opts ...grpc.CallOption) (*LoggerResponse, error)
}
LoggerClient is the client API for Logger 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 NewLoggerClient ¶
func NewLoggerClient(cc grpc.ClientConnInterface) LoggerClient
type LoggerRequest ¶
type LoggerRequest struct { ResourceID string `protobuf:"bytes,4,opt,name=resourceID,proto3" json:"resourceID,omitempty"` Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*LoggerRequest) Descriptor
deprecated
func (*LoggerRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoggerRequest.ProtoReflect.Descriptor instead.
func (*LoggerRequest) GetLevel ¶
func (x *LoggerRequest) GetLevel() string
func (*LoggerRequest) GetMsg ¶
func (x *LoggerRequest) GetMsg() string
func (*LoggerRequest) GetResourceID ¶
func (x *LoggerRequest) GetResourceID() string
func (*LoggerRequest) GetTimestamp ¶
func (x *LoggerRequest) GetTimestamp() string
func (*LoggerRequest) ProtoMessage ¶
func (*LoggerRequest) ProtoMessage()
func (*LoggerRequest) ProtoReflect ¶
func (x *LoggerRequest) ProtoReflect() protoreflect.Message
func (*LoggerRequest) Reset ¶
func (x *LoggerRequest) Reset()
func (*LoggerRequest) String ¶
func (x *LoggerRequest) String() string
type LoggerResponse ¶
type LoggerResponse struct { Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*LoggerResponse) Descriptor
deprecated
func (*LoggerResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoggerResponse.ProtoReflect.Descriptor instead.
func (*LoggerResponse) GetError ¶
func (x *LoggerResponse) GetError() string
func (*LoggerResponse) ProtoMessage ¶
func (*LoggerResponse) ProtoMessage()
func (*LoggerResponse) ProtoReflect ¶
func (x *LoggerResponse) ProtoReflect() protoreflect.Message
func (*LoggerResponse) Reset ¶
func (x *LoggerResponse) Reset()
func (*LoggerResponse) String ¶
func (x *LoggerResponse) String() string
type LoggerServer ¶
type LoggerServer interface { Log(context.Context, *LoggerRequest) (*LoggerResponse, error) // contains filtered or unexported methods }
LoggerServer is the server API for Logger service. All implementations must embed UnimplementedLoggerServer for forward compatibility
type UnimplementedLoggerServer ¶
type UnimplementedLoggerServer struct { }
UnimplementedLoggerServer must be embedded to have forward compatible implementations.
func (UnimplementedLoggerServer) Log ¶
func (UnimplementedLoggerServer) Log(context.Context, *LoggerRequest) (*LoggerResponse, error)
type UnsafeLoggerServer ¶
type UnsafeLoggerServer interface {
// contains filtered or unexported methods
}
UnsafeLoggerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoggerServer will result in compilation errors.