Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_log_log_proto protoreflect.FileDescriptor + func NewLogEndpoints() []*api.Endpoint + func RegisterLogHandler(s server.Server, hdlr LogHandler, opts ...server.HandlerOption) error + type LogConfig struct + LogKeepDays uint32 + LogLevel uint32 + func (*LogConfig) Descriptor() ([]byte, []int) + func (*LogConfig) ProtoMessage() + func (x *LogConfig) GetLogKeepDays() uint32 + func (x *LogConfig) GetLogLevel() uint32 + func (x *LogConfig) ProtoReflect() protoreflect.Message + func (x *LogConfig) Reset() + func (x *LogConfig) String() string + type LogContent struct + FileName string + FuncName string + IpAddr string + Level string + Line uint32 + Msg string + Service string + TaskID uint32 + Time string + func (*LogContent) Descriptor() ([]byte, []int) + func (*LogContent) ProtoMessage() + func (x *LogContent) GetFileName() string + func (x *LogContent) GetFuncName() string + func (x *LogContent) GetIpAddr() string + func (x *LogContent) GetLevel() string + func (x *LogContent) GetLine() uint32 + func (x *LogContent) GetMsg() string + func (x *LogContent) GetService() string + func (x *LogContent) GetTaskID() uint32 + func (x *LogContent) GetTime() string + func (x *LogContent) ProtoReflect() protoreflect.Message + func (x *LogContent) Reset() + func (x *LogContent) String() string + type LogContents struct + LogContents []*LogContent + TotalCount uint32 + func (*LogContents) Descriptor() ([]byte, []int) + func (*LogContents) ProtoMessage() + func (x *LogContents) GetLogContents() []*LogContent + func (x *LogContents) GetTotalCount() uint32 + func (x *LogContents) ProtoReflect() protoreflect.Message + func (x *LogContents) Reset() + func (x *LogContents) String() string + type LogFilter struct + And []*LogFilter + FileIn []string + FromTime string + FuncIn []string + IpIn []string + LevelIn []string + LineIn []uint32 + MsgIn []string + NexNum uint32 + Or []*LogFilter + PerNum uint32 + ServiceIn []string + TaskID uint32 + ToTime string + func (*LogFilter) Descriptor() ([]byte, []int) + func (*LogFilter) ProtoMessage() + func (x *LogFilter) GetAnd() []*LogFilter + func (x *LogFilter) GetFileIn() []string + func (x *LogFilter) GetFromTime() string + func (x *LogFilter) GetFuncIn() []string + func (x *LogFilter) GetIpIn() []string + func (x *LogFilter) GetLevelIn() []string + func (x *LogFilter) GetLineIn() []uint32 + func (x *LogFilter) GetMsgIn() []string + func (x *LogFilter) GetNexNum() uint32 + func (x *LogFilter) GetOr() []*LogFilter + func (x *LogFilter) GetPerNum() uint32 + func (x *LogFilter) GetServiceIn() []string + func (x *LogFilter) GetTaskID() uint32 + func (x *LogFilter) GetToTime() string + func (x *LogFilter) ProtoReflect() protoreflect.Message + func (x *LogFilter) Reset() + func (x *LogFilter) String() string + type LogHandler interface + GetConfig func(context.Context, *Request, *LogConfig) error + GetContextLog func(context.Context, *Query, *LogContents) error + GetLogLevel func(context.Context, *LogRequest, *Loglevel) error + GetLogs func(context.Context, *Query, *LogContents) error + GetLogsLevel func(context.Context, *LogRequest, *Logslevel) error + SetLogLevel func(context.Context, *Loglevel, *LogResponse) error + SetLogsLevel func(context.Context, *Logslevel, *LogsResponse) error + UpdateConfig func(context.Context, *LogConfig, *Response) error + WriteLog func(context.Context, *LogContent, *Response) error + type LogRequest struct + func (*LogRequest) Descriptor() ([]byte, []int) + func (*LogRequest) ProtoMessage() + func (x *LogRequest) ProtoReflect() protoreflect.Message + func (x *LogRequest) Reset() + func (x *LogRequest) String() string + type LogResponse struct + Name string + func (*LogResponse) Descriptor() ([]byte, []int) + func (*LogResponse) ProtoMessage() + func (x *LogResponse) GetName() string + func (x *LogResponse) ProtoReflect() protoreflect.Message + func (x *LogResponse) Reset() + func (x *LogResponse) String() string + type LogService interface + GetConfig func(ctx context.Context, in *Request, opts ...client.CallOption) (*LogConfig, error) + GetContextLog func(ctx context.Context, in *Query, opts ...client.CallOption) (*LogContents, error) + GetLogLevel func(ctx context.Context, in *LogRequest, opts ...client.CallOption) (*Loglevel, error) + GetLogs func(ctx context.Context, in *Query, opts ...client.CallOption) (*LogContents, error) + GetLogsLevel func(ctx context.Context, in *LogRequest, opts ...client.CallOption) (*Logslevel, error) + SetLogLevel func(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error) + SetLogsLevel func(ctx context.Context, in *Logslevel, opts ...client.CallOption) (*LogsResponse, error) + UpdateConfig func(ctx context.Context, in *LogConfig, opts ...client.CallOption) (*Response, error) + WriteLog func(ctx context.Context, in *LogContent, opts ...client.CallOption) (*Response, error) + func NewLogService(name string, c client.Client) LogService + type Loglevel struct + Level uint32 + Name string + func (*Loglevel) Descriptor() ([]byte, []int) + func (*Loglevel) ProtoMessage() + func (x *Loglevel) GetLevel() uint32 + func (x *Loglevel) GetName() string + func (x *Loglevel) ProtoReflect() protoreflect.Message + func (x *Loglevel) Reset() + func (x *Loglevel) String() string + type LogsResponse struct + LogsResponse []*LogResponse + func (*LogsResponse) Descriptor() ([]byte, []int) + func (*LogsResponse) ProtoMessage() + func (x *LogsResponse) GetLogsResponse() []*LogResponse + func (x *LogsResponse) ProtoReflect() protoreflect.Message + func (x *LogsResponse) Reset() + func (x *LogsResponse) String() string + type Logslevel struct + Logslevel []*Loglevel + func (*Logslevel) Descriptor() ([]byte, []int) + func (*Logslevel) ProtoMessage() + func (x *Logslevel) GetLogslevel() []*Loglevel + func (x *Logslevel) ProtoReflect() protoreflect.Message + func (x *Logslevel) Reset() + func (x *Logslevel) String() string + type Query struct + Filter *LogFilter + Page uint32 + PerPage uint32 + SubPage uint32 + func (*Query) Descriptor() ([]byte, []int) + func (*Query) ProtoMessage() + func (x *Query) GetFilter() *LogFilter + func (x *Query) GetPage() uint32 + func (x *Query) GetPerPage() uint32 + func (x *Query) GetSubPage() uint32 + func (x *Query) ProtoReflect() protoreflect.Message + func (x *Query) Reset() + func (x *Query) String() string + type Request struct + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type Response struct + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string