express

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 5 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 {
	Cloud       string `json:",options=[express100,expressBird]"` // 云服务商(当前支持 express100 和 expressBird)
	AppID       string // 应用ID
	SecretKey   string // 应用密钥
	RequestType string `json:",optional"` // 请求指令类型(expressBird 云服务商专用,枚举 1002、8001 和 8002)
}

Config 快递查询客户端配置

type Express

type Express interface {
	// Cloud 获取云服务商名称
	Cloud() string
	// GetExpress 获取快递物流信息
	GetExpress(ctx context.Context, req *types.GetExpressRequest) (*types.GetExpressResponse, error)
}

Express 快递查询客户端接口

func MustNewExpress

func MustNewExpress(c Config) Express

MustNewExpress 新建快递查询客户端

func NewExpress

func NewExpress(c Config) (Express, error)

NewExpress 新建快递查询客户端

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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