debugtools

package
v0.0.0-...-476b611 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Enabled bool = false

Variables

This section is empty.

Functions

func IsDebugEnv

func IsDebugEnv() bool

func NewDebugAuthenticator

func NewDebugAuthenticator(user *db.User, chainAddresses []persist.ChainAddress, debugToolsPassword string) auth.Authenticator

func NewDebugSocialAuthenticator

func NewDebugSocialAuthenticator(provider persist.SocialProvider, id string, metadata map[string]interface{}, debugToolsPassword string) socialauth.Authenticator

Types

type DebugAuthenticator

type DebugAuthenticator struct {
	User               *db.User
	ChainAddresses     []persist.ChainAddress
	DebugToolsPassword string
}

func (DebugAuthenticator) Authenticate

func (d DebugAuthenticator) Authenticate(ctx context.Context) (*auth.AuthResult, error)

func (DebugAuthenticator) GetDescription

func (d DebugAuthenticator) GetDescription() string

type DebugSocialAuthenticator

type DebugSocialAuthenticator struct {
	Provider           persist.SocialProvider
	ID                 string
	Metadata           map[string]interface{}
	DebugToolsPassword string
}

func (DebugSocialAuthenticator) Authenticate

Jump to

Keyboard shortcuts

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