Documentation ¶
Index ¶
- func CreateOperationLog(port int, timeoutSec int64, topic string, req *CreateOperationLogRequest) error
- func Destroy()
- func Init(psub, baseUrl string, timeoutSec time.Duration)
- func TodayVisitCount() (int64, error)
- type Between24HourUserCountResponse
- type Between30CountResponse
- type CreateOperationLogRequest
- type DateCount
- type GetOperationLogQuery
- type GetOperationLogResponse
- type HourCount
- type OperationLogInfo
- type TodayVisitCountResponse
- type UserIdsQuery
- type UserUseFuncResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOperationLog ¶
func CreateOperationLog(port int, timeoutSec int64, topic string, req *CreateOperationLogRequest) error
func TodayVisitCount ¶ added in v0.9.33
Types ¶
type Between24HourUserCountResponse ¶ added in v0.9.31
type Between24HourUserCountResponse struct { Infos []HourCount `json:"infos"` // contains filtered or unexported fields }
type Between30CountResponse ¶ added in v0.9.28
type Between30CountResponse struct { Infos []DateCount `json:"infos"` // contains filtered or unexported fields }
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 DateCount ¶ added in v0.9.28
func Between30Count ¶ added in v0.9.28
func Between30UserCount ¶ added in v0.9.28
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 HourCount ¶ added in v0.9.31
func Between24HourUserCount ¶ added in v0.9.31
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)
type TodayVisitCountResponse ¶ added in v0.9.33
type TodayVisitCountResponse struct { Info int64 `json:"info"` // contains filtered or unexported fields }
type UserIdsQuery ¶ added in v0.9.53
type UserIdsQuery struct {
UserIds []string `json:"userIds"`
}
type UserUseFuncResponse ¶ added in v0.9.53
Click to show internal directories.
Click to hide internal directories.