utils

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONHandler

type JSONHandler interface {
	Modules() ([]entities.ModuleInit, error)
}

JSONHandler interface

func NewJSONHandler

func NewJSONHandler(folderPath string) JSONHandler

NewJSONHandler json handler instance

type JwtHandler

type JwtHandler interface {
	CreateToken(ID string) (*StoredToken, error)
	GetTokenClaims(token string) (jwt.MapClaims, error)
}

JwtHandler interface

func NewJwtHandler

func NewJwtHandler(config configuration.SecurityConfig) JwtHandler

NewJwtHandler return a new JWT handler instance

type JwtHandlerMock

type JwtHandlerMock interface {
	CreateToken(ID string) (*StoredToken, error)
	GetTokenClaims(token string) (jwt.MapClaims, error)
}

JwtHandlerMock interface

func NewJwtHandlerMock

func NewJwtHandlerMock(config configuration.SecurityConfig) JwtHandlerMock

NewJwtHandlerMock return a new JWT handler instance

type PostmanParser

type PostmanParser interface {
	Parse(filename string, module string) (string, error)
}

PostmanParser postman parser interface

func NewPostmanParser

func NewPostmanParser(folderPath string, useDesc bool) PostmanParser

NewPostmanParser get a postman parser instance

type StoredToken

type StoredToken struct {
	ID             string
	AccessToken    string
	AccessUUID     string
	AccessExpires  int64
	RefreshToken   string
	RefreshUUID    string
	RefreshExpires int64
}

StoredToken stored token struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL