Documentation
¶
Index ¶
- func IsAuthenticated(ctx *gin.Context)
- type ApproveRequestArgs
- type ApproveRequestUriParams
- type AuthRequest
- type CreateClientArgs
- type CreatePermissionArgs
- type CreateUserArgs
- type CreateUserPermissionArgs
- type CreatedUserResponse
- type GetByUserIdAndPermIdArgs
- type GetClientsParams
- type GetPermissionsArgs
- type GetRequestsArgs
- type GetRequestsToApproveArgs
- type GetUserArgs
- type NewRequestArgs
- type PermissionParams
- type Profile
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAuthenticated ¶
IsAuthenticated is a middleware that checks if the user has already been authenticated previously.
Types ¶
type ApproveRequestArgs ¶
type ApproveRequestArgs struct {
Status string `json:"status" binding:"required"`
}
type ApproveRequestUriParams ¶
type ApproveRequestUriParams struct {
ID int64 `uri:"id" binding:"required,min=1"`
}
type AuthRequest ¶
type CreateClientArgs ¶
type CreateClientArgs struct {
Name string `json:"name" binding:"required"`
Email string `json:"email" binding:"required,email"`
Phone string `json:"phone" binding:"required"`
AccountNumber string `json:"account_number"`
PreferredPaymentType string `json:"preferred_payment_type" binding:"required"`
}
type CreatePermissionArgs ¶
type CreateUserArgs ¶
type CreatedUserResponse ¶
type GetClientsParams ¶
type GetPermissionsArgs ¶
type GetRequestsArgs ¶
type GetUserArgs ¶
type GetUserArgs struct {
ID string `uri:"id" binding:"required"`
}
type NewRequestArgs ¶
type PermissionParams ¶
type PermissionParams struct {
ID int64 `uri:"id" binding:"required,min=1"`
}
type Profile ¶
type Profile struct {
Iss string `json:"iss"`
Sub string `json:"sub"`
Aud []string `json:"aud"`
Iat int64 `json:"iat"`
Exp int64 `json:"exp"`
Azp string `json:"azp"`
Scope string `json:"scope"`
Name string `json:"name"`
Nickname string `json:"nickname"`
Picture string `json:"picture"`
Sid string `json:"sid"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(store db.TxStore, auth *authenticator.Authenticator) *Server
func (*Server) IsAuthorized ¶
func (*Server) StartServer ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.