utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Main   Mode       = 1
	Test   Mode       = 2
	Public ApiKeyType = 1
	Secret ApiKeyType = 2
)

https://levelup.gitconnected.com/implementing-enums-in-golang-9537c433d6e2

Variables

This section is empty.

Functions

func NewOpts

func NewOpts()

Types

type ApiKeyType

type ApiKeyType int

func ParseStringToApiKeyTypeEnum

func ParseStringToApiKeyTypeEnum(str string) (ApiKeyType, bool)

func (ApiKeyType) String

func (a ApiKeyType) String() string

type Mode

type Mode int

func (Mode) String

func (m Mode) String() string

type OptsType

type OptsType struct {
	ServerPort   int
	DbHost       string
	DbUser       string
	DbPassword   string
	DbName       string
	DbPort       string
	JwtSecret    string
	ApiKeySecret string

	EmailVerificationUrl string
}
var (
	Opts *OptsType
)

Jump to

Keyboard shortcuts

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