Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOperationLog ¶
func CreateOperationLog(port int, timeoutSec int64, topic string, req *CreateOperationLogRequest) error
Types ¶
type CreateOperationLogRequest ¶
type CreateOperationLogRequest struct { Ip string `json:"ip"` Method string `json:"method"` Path string `json:"path"` Agent string `json:"agent"` ErrorMessage string `json:"errorMessage"` Body string `json:"body"` Resp string `json:"resp"` UserName string `json:"userName"` CreateBy string `json:"createBy"` Status int `json:"status"` }
type GetOperationLogQuery ¶
type GetOperationLogResponse ¶
type GetOperationLogResponse struct { Infos []OperationLogInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type OperationLogInfo ¶
type OperationLogInfo struct { ID string `json:"id"` Ip string `json:"ip"` Method string `json:"method"` Path string `json:"path"` Status int `json:"status"` Agent string `json:"agent"` ErrorMessage string `json:"errorMessage"` Body string `json:"body"` Resp string `json:"resp"` UserName string `json:"userName"` CreatedAt string `json:"createdAt"` CreateBy string `json:"createBy"` }
func GetOperationLog ¶
func GetOperationLog(query *GetOperationLogQuery) ([]OperationLogInfo, int64, error)
Click to show internal directories.
Click to hide internal directories.