Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorTypeFatal = "Fatal" ErrorTypeError = "Error" ErrorTypeValidation = "Validation Error" ErrorTypeInfo = "Info" ErrorTypeDebug = "Debug" )
Variables ¶
This section is empty.
Functions ¶
func GetFlags ¶
func GetFlags() (*Flags, *ErrorDetail)
Types ¶
type ErrorDetail ¶
func (*ErrorDetail) Error ¶
func (err *ErrorDetail) Error() string
type Flags ¶
func (*Flags) GetApplicationUrl ¶
func (f *Flags) GetApplicationUrl() (*string, *ErrorDetail)
type JwtClaims ¶
type JwtClaims struct { ComapnyId string `json:"comapnyId,omitempty"` Username string `json:"username,omitempty"` Roles []int `json:"roles,omitempty"` jwt.StandardClaims }
func (JwtClaims) VerifyAudience ¶
type LoginRequest ¶
type Response ¶
type Response struct { Data interface{} Status int Error []ErrorDetail Message string }
Click to show internal directories.
Click to hide internal directories.