Documentation ¶
Index ¶
Constants ¶
View Source
const ( COMMENT = 1 LIKE_BLOG = 2 SCORE = 3 )
Variables ¶
This section is empty.
Functions ¶
func BuildWriter ¶
BuildWriter Create an io.Writer write logs to log service
func ProtoToLog ¶
func ProtoToLog(log *logservice.LogModel) *logmodel.LogModel
ProtoToLog log proto to log model
Types ¶
type Log ¶
type Log struct { Operator primitive.ObjectID Operation int32 OperationTarget primitive.ObjectID LogLevel logservice.LogModel_Level ExtraMessage string OperationTargetOwner primitive.ObjectID }
Log log struct
type LogClient ¶
type LogClient struct {
Client logservice.LogClient
}
LogClient as name
func GetNotifyLogClient ¶
func GetNotifyLogClient() *LogClient
Click to show internal directories.
Click to hide internal directories.