Documentation ¶
Index ¶
- func Error(in ...interface{})
- func Fatal(in ...interface{})
- func Info(in ...interface{})
- func RegisterLogServer(s *grpc.Server, srv LogServer)
- func Warn(in ...interface{})
- type LogClient
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)
- func (m *LogRequest) GetAppid() string
- func (m *LogRequest) GetException() string
- func (m *LogRequest) GetLogger() string
- func (m *LogRequest) GetMessage() string
- func (m *LogRequest) GetStacktrace() string
- func (m *LogRequest) GetThread() int32
- func (*LogRequest) ProtoMessage()
- func (m *LogRequest) Reset()
- func (m *LogRequest) String() string
- func (m *LogRequest) XXX_DiscardUnknown()
- func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogRequest) XXX_Merge(src proto.Message)
- func (m *LogRequest) XXX_Size() int
- func (m *LogRequest) XXX_Unmarshal(b []byte) error
- type LogServer
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetCode() int32
- func (m *Reply) GetData() string
- func (m *Reply) GetMsg() string
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type UnimplementedLogServer
- func (*UnimplementedLogServer) Error(ctx context.Context, req *LogRequest) (*Reply, error)
- func (*UnimplementedLogServer) Fatal(ctx context.Context, req *LogRequest) (*Reply, error)
- func (*UnimplementedLogServer) Info(ctx context.Context, req *LogRequest) (*Reply, error)
- func (*UnimplementedLogServer) Warn(ctx context.Context, req *LogRequest) (*Reply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogServer ¶
Types ¶
type LogClient ¶
type LogClient interface { Info(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*Reply, error) Warn(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*Reply, error) Error(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*Reply, error) Fatal(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*Reply, error) }
LogClient is the client API for Log service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogClient ¶
func NewLogClient(cc *grpc.ClientConn) LogClient
type LogRequest ¶
type LogRequest struct { Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"` Thread int32 `protobuf:"varint,2,opt,name=thread,proto3" json:"thread,omitempty"` Stacktrace string `protobuf:"bytes,3,opt,name=stacktrace,proto3" json:"stacktrace,omitempty"` Logger string `protobuf:"bytes,4,opt,name=logger,proto3" json:"logger,omitempty"` Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` Exception string `protobuf:"bytes,6,opt,name=exception,proto3" json:"exception,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogRequest) Descriptor ¶
func (*LogRequest) Descriptor() ([]byte, []int)
func (*LogRequest) GetAppid ¶
func (m *LogRequest) GetAppid() string
func (*LogRequest) GetException ¶
func (m *LogRequest) GetException() string
func (*LogRequest) GetLogger ¶
func (m *LogRequest) GetLogger() string
func (*LogRequest) GetMessage ¶
func (m *LogRequest) GetMessage() string
func (*LogRequest) GetStacktrace ¶
func (m *LogRequest) GetStacktrace() string
func (*LogRequest) GetThread ¶
func (m *LogRequest) GetThread() int32
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) Reset ¶
func (m *LogRequest) Reset()
func (*LogRequest) String ¶
func (m *LogRequest) String() string
func (*LogRequest) XXX_DiscardUnknown ¶
func (m *LogRequest) XXX_DiscardUnknown()
func (*LogRequest) XXX_Marshal ¶
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogRequest) XXX_Merge ¶
func (m *LogRequest) XXX_Merge(src proto.Message)
func (*LogRequest) XXX_Size ¶
func (m *LogRequest) XXX_Size() int
func (*LogRequest) XXX_Unmarshal ¶
func (m *LogRequest) XXX_Unmarshal(b []byte) error
type LogServer ¶
type LogServer interface { Info(context.Context, *LogRequest) (*Reply, error) Warn(context.Context, *LogRequest) (*Reply, error) Error(context.Context, *LogRequest) (*Reply, error) Fatal(context.Context, *LogRequest) (*Reply, error) }
LogServer is the server API for Log service.
type Reply ¶
type Reply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Reply) Descriptor ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type UnimplementedLogServer ¶
type UnimplementedLogServer struct { }
UnimplementedLogServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogServer) Error ¶
func (*UnimplementedLogServer) Error(ctx context.Context, req *LogRequest) (*Reply, error)
func (*UnimplementedLogServer) Fatal ¶
func (*UnimplementedLogServer) Fatal(ctx context.Context, req *LogRequest) (*Reply, error)
func (*UnimplementedLogServer) Info ¶
func (*UnimplementedLogServer) Info(ctx context.Context, req *LogRequest) (*Reply, error)
func (*UnimplementedLogServer) Warn ¶
func (*UnimplementedLogServer) Warn(ctx context.Context, req *LogRequest) (*Reply, error)
Click to show internal directories.
Click to hide internal directories.