router

package
v0.0.0-...-aa65b62 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunRouter

func RunRouter()

RunRouter runs service routing

Types

type AuthReq

type AuthReq struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

AuthReq auth request data type

type AuthResp

type AuthResp struct {
	Code string `json:"code"`
}

AuthResp auth code response data type

type CheckAccessTokenReq

type CheckAccessTokenReq struct {
	AccessToken string `json:"accessToken"`
}

CheckAccessTokenReq checks access token request data type

type RefreshAccessTokenResp

type RefreshAccessTokenResp struct {
	AccessToken string `json:"accessToken"`
}

RefreshAccessTokenResp refresh access token response data type

type RefreshTokenReq

type RefreshTokenReq struct {
	RefreshToken string `json:"refreshToken"`
}

RefreshTokenReq revoke refresh token request data type

type RegisterReq

type RegisterReq struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

RegisterReq register request data type

type StatusResp

type StatusResp struct {
	Status string `json:"status"`
}

StatusResp response data type

type UseCodeReq

type UseCodeReq struct {
	Code string `json:"code"`
}

UseCodeReq use code request data type

type UseCodeResp

type UseCodeResp struct {
	AccessToken       string    `json:"accessToken"`
	ValidUntil        time.Time `json:"validUntil"`
	RefreshToken      string    `json:"refreshToken"`
	RefreshValidUntil time.Time `json:"refreshValidUntil"`
}

UseCodeResp use code response data type

Jump to

Keyboard shortcuts

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