config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIPrefix = "https://ipfs-api.qiniu.com/gas-api"

DefaultAPIPrefix 默认的 API 前缀

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MinerID   string            // 矿工号
	AccessKey string            // 用户 AccessKey
	SecretKey string            // 用户 SecretKey
	APIPrefix string            // API 前缀,通过指定 API 前缀控制请求的 server,一般无需配置
	Transport http.RoundTripper // 自定义 HTTP RoundTripper,一般无需配置,默认会使用 http.DefaultTransport
	Logger    logger.Logger     // 自定义的 logger,不提供则不打印信息
}

Config 是 SDK 的配置,控制 SDK 的行为

Jump to

Keyboard shortcuts

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