utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyStrPtr

func CopyStrPtr(input *string) (output *string)

func CurrentTime

func CurrentTime() time.Time

func CurrentTimeMs

func CurrentTimeMs() int64

func FromAriesInvitation

func FromAriesInvitation(invitationStr string) (res *model.InvitationResponse, err error)

func LogHigh

func LogHigh() glog.Verbose

func LogLow

func LogLow() glog.Verbose

func LogMed

func LogMed() glog.Verbose

func SetLogDefaults

func SetLogDefaults()

func StrToQRCode

func StrToQRCode(str string) (res string, err error)

func TimestampToTime

func TimestampToTime(tsMs *int64) *time.Time

Types

type Configuration

type Configuration struct {
	Address          string
	ServerPort       int    `mapstructure:"server_port"`
	JWTKey           string `mapstructure:"jwt_key"`
	DBHost           string `mapstructure:"db_host"`
	DBPort           int    `mapstructure:"db_port"`
	DBPassword       string `mapstructure:"db_password"`
	AgencyHost       string `mapstructure:"agency_host"`
	AgencyPort       int    `mapstructure:"agency_port"`
	AgencyCertPath   string `mapstructure:"agency_cert_path"`
	UseMockDB        bool
	UseMockAgency    bool
	GenerateFakeData bool
	UsePlayground    bool
}

func LoadConfig

func LoadConfig() *Configuration

Jump to

Keyboard shortcuts

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