Documentation
¶
Index ¶
- func FlattenSettings(settings []models.Setting) gin.H
- func GenerateAccessToken(secret string, subject string) (*string, error)
- func GenerateApiToken(secret string, subject, creator string) (*string, error)
- func GetParsedToken(token, secret string) (*jwt.Token, error)
- func GetRequestParams(body io.ReadCloser) (map[string]interface{}, error)
- func GetTokenAudience(token, secret string) (string, error)
- func StringContains(a []string, x string) bool
- func ValidateJwtToken(token string, secret string, audience string) (jwt.MapClaims, error)
- type Error
- type ReaderCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateApiToken ¶
func GetParsedToken ¶
func GetRequestParams ¶
func GetRequestParams(body io.ReadCloser) (map[string]interface{}, error)
func GetTokenAudience ¶
func StringContains ¶
Types ¶
type Error ¶
type Error struct { Code string `json:"code"` Message string `json:"message"` Trace error `json:"trace"` HttpCode int `json:"-"` }
func NewErrorWithTrace ¶
func (Error) ErrorTrace ¶
type ReaderCounter ¶
ReaderCounter is counter for io.Reader
func NewReaderCounter ¶
func NewReaderCounter(r io.Reader) *ReaderCounter
NewReaderCounter function for create new ReaderCounter
func (*ReaderCounter) Count ¶
func (counter *ReaderCounter) Count() uint64
Count function return counted bytes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.