config

package
v5.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "5.14.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseURI

type BaseURI string
const (
	BaseURITest BaseURI = "https://test.stytch.com/v1"
	BaseURILive BaseURI = "https://api.stytch.com/v1"
)

type Config

type Config struct {
	Env     Env
	BaseURI BaseURI
	/** The ProjectID to use with basic authentication */
	/** Replace the value of ProjectID with SetBasicAuthProjectID function */
	ProjectID string
	/** The Secret to use with basic authentication */
	/** Replace the value of Secret with SetBasicAuthSecret function */
	Secret string
}

func New

func New() *Config

func (*Config) BasicAuthProjectID

func (c *Config) BasicAuthProjectID() string

func (*Config) BasicAuthSecret

func (c *Config) BasicAuthSecret() string

func (*Config) GetBaseURI

func (c *Config) GetBaseURI() BaseURI

func (*Config) GetEnv

func (c *Config) GetEnv() Env

func (*Config) SetBasicAuthProjectID

func (c *Config) SetBasicAuthProjectID(projectID string)

func (*Config) SetBasicAuthSecret

func (c *Config) SetBasicAuthSecret(secret string)

func (*Config) SetEnv

func (c *Config) SetEnv(env Env)

type Env

type Env string
const (
	EnvTest Env = "test"
	EnvLive Env = "live"
)

Jump to

Keyboard shortcuts

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