conf

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFile = "conf.json"
	BaseDir    = ".stripePay"
	TestDir    = "test"
)

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(jsonBytes []byte, usrHome string) error

func SslPath

func SslPath() (string, string)

Types

type StripeConfig

type StripeConfig struct {
	Home        string
	SslCertPath string
	SslKeyPath  string
	LogLevel    logging.Level
	StripeConf  *StripeKey
	PayMethod   []string
	Currency    string
}

func Conf

func Conf() *StripeConfig

func CreateDefault

func CreateDefault() *StripeConfig

func (*StripeConfig) HomeDir

func (c *StripeConfig) HomeDir() string

func (*StripeConfig) String

func (c *StripeConfig) String() string

type StripeKey

type StripeKey struct {
	PubKey     string
	PriKey     string
	WebHookKey string
}

func StripeKeys

func StripeKeys() *StripeKey

func (*StripeKey) String

func (key *StripeKey) String() string

Jump to

Keyboard shortcuts

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