types

package
v0.0.0-...-0b73d59 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instructions common.Instructions
View Source
var TooShortDataAnswer = errors.New("too short data answer")
View Source
var TooShortVerifyAnswer = errors.New("too short verify answer")

Functions

This section is empty.

Types

type LinkedAccount

type LinkedAccount struct {
	ID           string      `json:"id,omitempty"`
	UserID       int64       `json:"-"`
	User         elling.User `json:"user"`
	DisplayParam string      `json:"display_param,omitempty" gorm:"-"`
}

type Service

type Service struct {
	DisplayName     string            `yaml:"display-name" json:"display_name,omitempty"`
	Name            string            `yaml:"name" json:"name,omitempty"`
	OAuthGenRequest string            `yaml:"oauth-gen-request" json:"oauth_gen_request,omitempty"`
	NeedVerify      bool              `yaml:"need-verify" json:"-"`
	VerifyRequest   elling.NetRequest `yaml:"verify-request" json:"-"`
	GetDataRequest  elling.NetRequest `yaml:"get-data-request" json:"-"`
}

func (Service) ToLinkedAccount

func (t Service) ToLinkedAccount(token string) (*LinkedAccount, error)

Jump to

Keyboard shortcuts

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