auth

package
v1.12.10 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const TokenTypeAccessToken = 1
View Source
const TokenTypeOauthToken = 0

Variables

This section is empty.

Functions

func NewMysqlRepo

func NewMysqlRepo(q *query.Query, log *zap.Logger) domain.AuthRepo

func NewService

func NewService(repo domain.AuthRepo, user domain.UserRepo, logger *zap.Logger, c cache.Generic) domain.AuthService

Types

type TokenInfo added in v0.18.0

type TokenInfo struct {
	CreatedAt time.Time `json:"created_at"`
	Name      string    `json:"name"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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