schema

package
v0.0.0-...-185ace6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshTokenFromSchema

func RefreshTokenFromSchema(in *RefreshToken) *refreshtoken.RefreshToken

Types

type RefreshToken

type RefreshToken struct {
	ID      string `json:"id" validate:"required,alphanum"`
	UserID  string `json:"user_id" validate:"required,alphanum"`
	Token   string `json:"token" validate:"required,alphanum"`
	Revoked bool   `json:"revoked,omitempty"`

	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func RefreshTokenToSchema

func RefreshTokenToSchema(in *refreshtoken.RefreshToken) *RefreshToken

Jump to

Keyboard shortcuts

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