Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyResponse ¶
type EmptyResponse struct { }
type Endpoints ¶
type Endpoints struct { ResetBucketByLogin endpoint.Endpoint ResetBucketByPassword endpoint.Endpoint ResetBucketByIP endpoint.Endpoint AddInBlacklist endpoint.Endpoint RemoveFromBlacklist endpoint.Endpoint AddInWhitelist endpoint.Endpoint RemoveFromWhitelist endpoint.Endpoint }
Endpoints for admin-panel.
func MakeAdminEndpoints ¶
func MakeAdminEndpoints(svc service.AdminService) Endpoints
MakeAdminEndpoints provides endpoints for admin-panel.
type ResetBucketByIPRequest ¶
type ResetBucketByIPRequest struct {
IP string `json:"ip"`
}
type ResetBucketByLoginRequest ¶
type ResetBucketByLoginRequest struct {
Login string `json:"login"`
}
type ResetBucketByPasswordRequest ¶
type ResetBucketByPasswordRequest struct {
Password string `json:"password"`
}
type SubnetRequest ¶
type SubnetRequest struct {
IPWithMask string `json:"ip_with_mask"`
}
Click to show internal directories.
Click to hide internal directories.