config

package
v0.0.0-...-8b89508 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConn

func GetConn(key string) (connect.Connect, error)

func MustAPNKey

func MustAPNKey() string

func MustDBConn

func MustDBConn(prod bool) connect.Connect

func MustGetLogger

func MustGetLogger(prod bool) *zap.Logger

func MustSetupViper

func MustSetupViper()

func SetupViper

func SetupViper() error

Types

type APNOption

type APNOption struct {
	AuthKey string `mapstructure:"apn_auth_key"`
	KeyID   string `mapstructure:"apn_key_id"`
	TeamID  string `mapstructure:"apn_team_id"`
}

func MustAPNOption

func MustAPNOption() APNOption

type APNTopic

type APNTopic struct {
	Phone string `mapstructure:"phone"`
	Pad   string `mapstructure:"pad"`
}

func MustAPNTopic

func MustAPNTopic() APNTopic

Jump to

Keyboard shortcuts

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