rexConfig

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Access key ID
	AccessKeyID string `json:"AccessKeyId,optional,inherit" mapstructure:"AccessKeyId" yaml:"AccessKeyId"`
	// Secret Access Key
	AccessKeySecret string `json:"AccessKeySecret,optional,inherit" mapstructure:"AccessKeySecret" yaml:"AccessKeySecret"`
	Endpoint        string `json:"Endpoint,default=api.rootexit.com,optional" mapstructure:"Endpoint" yaml:"Endpoint"`
	Protocol        string `json:"Protocol,default=https,options=http|https,optional" mapstructure:"Protocol" yaml:"Protocol"`
	Region          string `json:"Region,default=cn-shanghai,optional" mapstructure:"Region" yaml:"Region"`
	Timeout         int    `json:"Timeout,default=2000,optional" mapstructure:"Timeout" yaml:"Timeout"`
	Debug           bool   `json:"Debug,default=false,optional" mapstructure:"Debug" yaml:"Debug"`
}

func DefaultConfig

func DefaultConfig(AccessKeyID, AccessKeySecret string) (config *Config)

func NewConfig

func NewConfig(c Config) *Config

func (*Config) Check

func (c *Config) Check() error

Jump to

Keyboard shortcuts

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