Documentation ¶
Index ¶
- Variables
- func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)
- func ToMessage(m *Message) (res logger.Message, err error)
- type LoggerClient
- type LoggerServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetData() string
- func (x *Message) GetIdentifier() string
- func (x *Message) GetLogMessage() string
- func (x *Message) GetLogName() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type UnimplementedLoggerServer
- type UnsafeLoggerServer
Constants ¶
This section is empty.
Variables ¶
var File_logd_proto protoreflect.FileDescriptor
var Logger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "logd.Logger", HandlerType: (*LoggerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LogMessage", Handler: _Logger_LogMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "logd.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 {
LogMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*emptypb.Empty, 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 LoggerServer ¶
type LoggerServer interface { LogMessage(context.Context, *Message) (*emptypb.Empty, error) // contains filtered or unexported methods }
LoggerServer is the server API for Logger service. All implementations must embed UnimplementedLoggerServer for forward compatibility
type Message ¶
type Message struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` LogName string `protobuf:"bytes,2,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` LogMessage string `protobuf:"bytes,3,opt,name=log_message,json=logMessage,proto3" json:"log_message,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func FromMessage ¶
FromMessage converts the given logger.Message to a *Message.
func (*Message) Descriptor
deprecated
func (*Message) GetIdentifier ¶
func (*Message) GetLogMessage ¶
func (*Message) GetLogName ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.1.30
func (x *Message) ProtoReflect() protoreflect.Message
type UnimplementedLoggerServer ¶
type UnimplementedLoggerServer struct { }
UnimplementedLoggerServer must be embedded to have forward compatible implementations.
func (UnimplementedLoggerServer) LogMessage ¶
type UnsafeLoggerServer ¶ added in v0.1.30
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.