config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalEndpoint = "http://localhost:9229"
	LocalData     = "./data/db/"
)

Variables

This section is empty.

Functions

func ParseConfirmationCode

func ParseConfirmationCode(username string, storagePath string) (string, error)

func ParsePoolIDByName

func ParsePoolIDByName(poolName string, storagePath string) (string, error)

func ParseUserStatus

func ParseUserStatus(username string, storagePath string) (string, error)

Types

type AWS

type AWS struct {
	Region             string `yaml:"REGION"`
	AwsAccessKeyId     string `yaml:"AWS_ACCESS_KEY_ID"`
	AwsSecretAccessKey string `yaml:"AWS_SECRET_ACCESS_KEY"`
	Endpoint           string `yaml:"ENDPOINT"`
}

func ReadYAML

func ReadYAML(path string) (*AWS, error)

type Client

type Client struct {
	ClientId           string    `json:"ClientId"`
	ClientName         string    `json:"ClientName"`
	CreationDate       time.Time `json:"CreationDate"`
	LastModifiedDate   time.Time `json:"LastModifiedDate"`
	UserPoolId         string    `json:"UserPoolId"`
	TokenValidityUnits struct {
		AccessToken  string `json:"AccessToken"`
		IdToken      string `json:"TokenID"`
		RefreshToken string `json:"RefreshToken"`
	}
}

func ParseClientByID

func ParseClientByID(clientID string, storagePath string) (*Client, error)

Jump to

Keyboard shortcuts

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