Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	// Access Token for user
	Access *Token `json:"access"`
}

Access Token for user

type InfoResult

type InfoResult struct {
	// User Information
	Data *UserData `json:"data"`
}

type NewRefreshTokenResult

type NewRefreshTokenResult struct {
	// User Refresh JWT
	Data *RefreshToken `json:"data"`
}

NewRefreshTokenResult is the result type of the user service NewRefreshToken method.

type RefreshAccessTokenResult

type RefreshAccessTokenResult struct {
	// User Access JWT
	Data *AccessToken `json:"data"`
}

RefreshAccessTokenResult is the result type of the user service RefreshAccessToken method.

type RefreshToken

type RefreshToken struct {
	// Refresh Token for user
	Refresh *Token `json:"refresh"`
}

Refresh Token for User

type Token

type Token struct {
	// JWT
	Token string `json:"token"`
	// Duration the token will Expire In
	RefreshInterval string `json:"refreshInterval"`
	// Time the token will expires at
	ExpiresAt int64 `json:"expiresAt"`
}

Token includes the JWT, Expire Duration & Time

type UserData

type UserData struct {
	// Username of User
	UserName string `json:"userName"`
	// Name of user
	Name string `json:"name"`
	// User's profile picture url
	AvatarURL string `json:"avatarUrl"`
}

Git user Information

Jump to

Keyboard shortcuts

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