util

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.0.3

func Bool(b bool) *bool

Bool returns a pointer to the passed bool b.

func Duration added in v0.0.3

func Duration(d time.Duration) *time.Duration

Duration returns a pointer to the passed time.Duration d.

func Float32 added in v0.0.4

func Float32(f float32) *float32

Float32 returns a pointer to the passed float32 f.

func Float64 added in v0.0.4

func Float64(f float64) *float64

Float64 returns a pointer to the passed float64 f.

func Int added in v0.0.3

func Int(i int) *int

Int returns a pointer to the passed integer i.

func Int64 added in v0.0.3

func Int64(i int64) *int64

Int64 returns a pointer to the passed integer i.

func IntSlice added in v0.0.3

func IntSlice(is []int) *[]int

IntSlice returns a pointer to the passed integer slice is

func NewMQ added in v0.0.7

func NewMQ() mq.MQ

func String added in v0.0.3

func String(s string) *string

String returns a pointer to the passed string s.

func StringSlice added in v0.0.3

func StringSlice(ss []string) *[]string

StringSlice returns a pointer to the passed string slice ss

Types

type ClientConfig added in v0.0.11

type ClientConfig struct {
	BaseURL        string
	CfClientID     string
	CfClientSecret string
}

type DatabaseConfig

type DatabaseConfig struct {
	Host           string
	User           string
	Password       string
	Database       string
	Port           string
	MaxConnections int
	SSLMode        string
	SSLCAPath      string
	Options        string
}

type GqlConfig

type GqlConfig struct {
	APIPath           string
	PlaygroundPath    string
	PlaygroundAPIPath string
	PlaygroundEnabled bool
	Port              string
	ComplexityLimit   int
	Environment       string
	Cache             graphql.Cache
}

type HashConfig

type HashConfig struct {
	Salt      string
	MinLength int
}

type JWTConfig

type JWTConfig struct {
	PublicKey  *ecdsa.PublicKey
	PrivateKey *ecdsa.PrivateKey
}

Jump to

Keyboard shortcuts

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