model

package
v0.0.0-...-04a01ff Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type ExpireIn

type ExpireIn struct {
	AccessToken  int64
	RefreshToken int64
}

type Rsa

type Rsa struct {
	VerifyKey *rsa.PublicKey
	SignKey   *rsa.PrivateKey
}

func (*Rsa) Load

func (rsa *Rsa) Load(privateKeyPath, publicKeyPath string) error

type StoreType

type StoreType int8
const (
	StoreTypeAccess StoreType = iota
	StoreTypeRefresh
)

type StoredAuth

type StoredAuth struct {
	Type       StoreType
	UserId     string
	LinkedUuid string
}

type Token

type Token struct {
	Token   string
	Uuid    string
	Expires int64
}

type TokenSet

type TokenSet struct {
	AccessToken  Token
	RefreshToken Token
}

type User

type User struct {
	DN     string
	Id     string
	Groups []string
}

Jump to

Keyboard shortcuts

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