Documentation ¶
Index ¶
- Variables
- func NewLoggerEndpoints() []*api.Endpoint
- func RegisterLoggerHandler(s server.Server, hdlr LoggerHandler, opts ...server.HandlerOption) error
- type LoggerHandler
- type LoggerService
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetData() []byte
- func (x *WriteRequest) GetServiceName() string
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- type WriteResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_logger_proto protoreflect.FileDescriptor
Functions ¶
func NewLoggerEndpoints ¶
func RegisterLoggerHandler ¶
func RegisterLoggerHandler(s server.Server, hdlr LoggerHandler, opts ...server.HandlerOption) error
Types ¶
type LoggerHandler ¶
type LoggerHandler interface {
Write(context.Context, *WriteRequest, *WriteResponse) error
}
type LoggerService ¶
type LoggerService interface {
Write(ctx context.Context, in *WriteRequest, opts ...client.CallOption) (*WriteResponse, error)
}
func NewLoggerService ¶
func NewLoggerService(name string, c client.Client) LoggerService
type WriteRequest ¶
type WriteRequest struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetData ¶
func (x *WriteRequest) GetData() []byte
func (*WriteRequest) GetServiceName ¶
func (x *WriteRequest) GetServiceName() string
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
type WriteResponse ¶ added in v0.0.2
type WriteResponse struct { N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` // contains filtered or unexported fields }
func (*WriteResponse) Descriptor
deprecated
added in
v0.0.2
func (*WriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
func (*WriteResponse) GetN ¶ added in v0.0.2
func (x *WriteResponse) GetN() int32
func (*WriteResponse) ProtoMessage ¶ added in v0.0.2
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) ProtoReflect ¶ added in v0.0.2
func (x *WriteResponse) ProtoReflect() protoreflect.Message
func (*WriteResponse) Reset ¶ added in v0.0.2
func (x *WriteResponse) Reset()
func (*WriteResponse) String ¶ added in v0.0.2
func (x *WriteResponse) String() string
Click to show internal directories.
Click to hide internal directories.