providers

package
v0.0.0-...-f97ce34 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facebook

type Facebook struct {
	*decoder.Decoder
	// contains filtered or unexported fields
}

func NewFacebookAuth

func NewFacebookAuth(config *oauth2.Config) *Facebook

func (*Facebook) Callback

func (f *Facebook) Callback(r *http.Request) (light.User, error)

func (*Facebook) RedirectUrl

func (f *Facebook) RedirectUrl() string

type Google

type Google struct {
	*decoder.Decoder
	// contains filtered or unexported fields
}

func NewGoogleAuth

func NewGoogleAuth(config *oauth2.Config) *Google

func (*Google) Callback

func (f *Google) Callback(r *http.Request) (light.User, error)

func (*Google) RedirectUrl

func (f *Google) RedirectUrl() string

type Response

type Response struct {
	ID      int    `json:"id"`
	Cnt     int    `json:"cnt"`
	Cost    string `json:"cost"`
	Balance string `json:"balance"`
}

type SMS

type SMS interface {
	Send(ctx context.Context, phone, msg string) error
}

type SMSC

type SMSC struct {
	// contains filtered or unexported fields
}

func NewSMSC

func NewSMSC(cfg *config.SMSC) *SMSC

func (*SMSC) Send

func (s *SMSC) Send(ctx context.Context, phone, msg string) error

type Socials

type Socials interface {
	Callback(r *http.Request) (light.User, error)
	RedirectUrl() string
}

Jump to

Keyboard shortcuts

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