logger

package
v0.1.0-2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(in ...interface{})

func Fatal

func Fatal(in ...interface{})

func Info

func Info(in ...interface{})

func RegisterLogServer

func RegisterLogServer(s *grpc.Server, srv LogServer)

func Warn

func Warn(in ...interface{})

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) Descriptor() ([]byte, []int)

func (*Reply) GetCode

func (m *Reply) GetCode() int32

func (*Reply) GetData

func (m *Reply) GetData() string

func (*Reply) GetMsg

func (m *Reply) GetMsg() string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

func (*Reply) XXX_DiscardUnknown

func (m *Reply) XXX_DiscardUnknown()

func (*Reply) XXX_Marshal

func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reply) XXX_Merge

func (m *Reply) XXX_Merge(src proto.Message)

func (*Reply) XXX_Size

func (m *Reply) XXX_Size() int

func (*Reply) XXX_Unmarshal

func (m *Reply) XXX_Unmarshal(b []byte) error

type UnimplementedLogServer

type UnimplementedLogServer struct {
}

UnimplementedLogServer can be embedded to have forward compatible implementations.

func (*UnimplementedLogServer) Error

func (*UnimplementedLogServer) Fatal

func (*UnimplementedLogServer) Info

func (*UnimplementedLogServer) Warn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL