rexConfig

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 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:",optional,inherit"`
	// Secret Access Key
	AccessKeySecret string `json:",optional,inherit"`
	Endpoint        string `json:",default=api.rootexit.com,optional"`
	Protocol        string `json:",default=https,options=http|https,optional"`
	Region          string `json:",default=cn-shanghai,optional"`
	Timeout         int    `json:",default=2000,optional"`
	Debug           bool   `json:",default=false,optional"`
}

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