Documentation ¶
Index ¶
- type DeleteConfigRequest
- type DeleteConfigResponse
- type DeleteLogRequest
- type DeleteLogResponse
- type DeleteMetaRequest
- type DeleteMetaResponse
- type DeleteSessionRequest
- type DeleteSessionResponse
- type GetLogResponse
- type Meta
- type Notice
- type Plan
- type PostConfigRequest
- type PostConfigResponse
- type PostLogRequest
- type PostLogResponse
- type PostMetaRequest
- type PostMetaResponse
- type PostNoticeRequest
- type PostPlanRequest
- type PostSessionRequest
- type PostSessionResponse
- type PostUserRequest
- type PostUserResponse
- type PutConfigRequest
- type PutConfigResponse
- type PutLogRequest
- type PutLogResponse
- type PutMetaRequest
- type PutMetaResponse
- type PutSessionRequest
- type PutSessionResponse
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteConfigRequest ¶
type DeleteConfigRequest struct { }
type DeleteConfigResponse ¶
type DeleteConfigResponse struct { }
type DeleteLogRequest ¶
type DeleteLogRequest struct { }
type DeleteLogResponse ¶
type DeleteLogResponse struct { }
type DeleteMetaRequest ¶
type DeleteMetaRequest struct { }
type DeleteMetaResponse ¶
type DeleteMetaResponse struct { }
type DeleteSessionRequest ¶
type DeleteSessionRequest struct { }
type DeleteSessionResponse ¶
type DeleteSessionResponse struct { }
type GetLogResponse ¶
type GetLogResponse struct { ID uint `json:"id" validate:"required"` CreateAt time.Time `json:"created_at" validate:"required"` Level uint32 `json:"level" validate:"required"` Func string `json:"func"` File string `json:"file" ` Msg string `json:"msg" ` Stack string `json:"stack"` Fields string `json:"fields" ` }
func GetLogs ¶
func GetLogs(logs []model.Log) []GetLogResponse
type Notice ¶
type Notice struct { ID uint `json:"id" validate:"required"` Title string `json:"title" validate:"required"` Text string `json:"text" ` }
func GetNotices ¶
type Plan ¶
type PostConfigRequest ¶
type PostConfigRequest struct { }
type PostConfigResponse ¶
type PostConfigResponse struct { }
type PostLogRequest ¶
type PostLogRequest struct { }
type PostLogResponse ¶
type PostLogResponse struct { }
type PostMetaRequest ¶
type PostMetaRequest struct { }
type PostMetaResponse ¶
type PostMetaResponse struct { }
type PostNoticeRequest ¶
type PostPlanRequest ¶
type PostSessionRequest ¶
type PostSessionResponse ¶
type PostUserRequest ¶
type PostUserResponse ¶
type PutConfigRequest ¶
type PutConfigRequest struct { }
type PutConfigResponse ¶
type PutConfigResponse struct { }
type PutLogRequest ¶
type PutLogRequest struct { }
type PutLogResponse ¶
type PutLogResponse struct { }
type PutMetaRequest ¶
type PutMetaRequest struct { }
type PutMetaResponse ¶
type PutMetaResponse struct { }
type PutSessionRequest ¶
type PutSessionRequest struct { }
type PutSessionResponse ¶
type PutSessionResponse struct { }
type User ¶
type User struct { ID uint `json:"id" validate:"required"` Username string `json:"username" validate:"required"` Role uint `json:"role" validate:"required"` PlanID uint `json:"plan_id" validate:"required"` PlanName string `json:"plan_name" validate:"required"` PlanBandwidthLimit uint `json:"plan_bandwidth_limit" validate:"required"` PlanTrafficLimit uint `json:"plan_traffic_limit" validate:"required"` TrafficUsed uint `json:"traffic_used" validate:"required"` PlanStart time.Time `json:"plan_start" validate:"required"` PlanReset time.Time `json:"plan_reset" validate:"required"` PlanEnd time.Time `json:"plan_end" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.