mmysql

package
v0.0.0-...-074395f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth2

type Oauth2 struct {
	gorm.Model
	Company      string `json:"name" binding:"required,oneof= github facebook google"`
	ClientId     string `json:"client_id" binding:"required"`
	ClientSecret string `json:"client_secret" binding:"required"`
	RedirectUrl  string `json:"redirect_url" binding:"required"`
	Scopes       Scopes `json:"scopes" binding:"required"`
	AuthUrl      string `json:"auth_url" binding:"required"`
	TokenUrl     string `json:"token_url" binding:"required"`
}

func (Oauth2) TableName

func (Oauth2) TableName() string

type Scopes

type Scopes []string

func (*Scopes) Scan

func (c *Scopes) Scan(input interface{}) error

func (Scopes) Value

func (c Scopes) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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