Documentation ¶
Index ¶
- Variables
- func CopyStrPtr(input *string) (output *string)
- func CurrentTime() time.Time
- func CurrentTimeMs() int64
- func FromAriesInvitation(invitationStr string) (res *model.InvitationResponse, err error)
- func LogHigh() glog.Verbose
- func LogLow() glog.Verbose
- func LogMed() glog.Verbose
- func LogTrace() glog.Verbose
- func SetLogConfig(config *Configuration)
- func SetLogDefaults()
- func StrToQRCode(str string) (res string, err error)
- func TSToTimeIfNotSet(current *time.Time, tsMs *int64) *time.Time
- type Configuration
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = ""
Functions ¶
func CopyStrPtr ¶
func CurrentTime ¶
func CurrentTimeMs ¶
func CurrentTimeMs() int64
func FromAriesInvitation ¶
func FromAriesInvitation(invitationStr string) (res *model.InvitationResponse, err error)
func SetLogConfig ¶ added in v0.1.3
func SetLogConfig(config *Configuration)
func SetLogDefaults ¶
func SetLogDefaults()
func StrToQRCode ¶
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"` DBTracing bool `mapstructure:"db_tracing"` AgencyHost string `mapstructure:"agency_host"` AgencyPort int `mapstructure:"agency_port"` AgencyCertPath string `mapstructure:"agency_cert_path"` UseMockDB bool UseMockAgency bool GenerateFakeData bool UsePlayground bool `mapstructure:"use_playground"` LogLevel string `mapstructure:"log_level"` Version string }
func LoadConfig ¶
func LoadConfig() *Configuration
Click to show internal directories.
Click to hide internal directories.