models

package
v0.0.0-...-c69cda6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Location *time.Location

Functions

func Init

func Init() error

Types

type OAuthClient

type OAuthClient struct {
	gorm.Model
	Provider          *string `gorm:"Column:provider"`
	AuthorizeEndpoint *string `gorm:"Column:auth_endpoint"`
	ClientId          *string `gorm:"Column:client_id"`
	ClientSecret      *string `gorm:"Column:provider"`
	Scope             *string `gorm:"Column:scope"`
	RedirectUri       *string `gorm:"Column:redirect_uri"`
	StateKey          *string `gorm:"Column:state_key"`
}

OAuthClient => State will be populated later (not DB)

func GetClientByProvider

func GetClientByProvider(prov string) (*OAuthClient, error)

func NewClient

func NewClient() *OAuthClient

func (*OAuthClient) TableName

func (*OAuthClient) TableName() string

Jump to

Keyboard shortcuts

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