kdniaoGo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

kdniaoGo

快递鸟 SDK Go 语言版

Requirements

Go 1.12 or above.

Install

go get -u -x -v -insecure github.com/RiverDanceGit/kdniaoGo
Configure Parameter

EBusinessID 和 AppKey 去 快递鸟用户管理后台 查看

shell> vi config.txt
EBusinessID,AppKey
Demo

详细用法见

  • express_test.go
  • monitor_realtime_test.go
  • monitor_subscribe_test.go
  • recognise_test.go
API Document
下单类接口
查询类接口
增值类接口

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KdniaoConfig

type KdniaoConfig struct {
	// contains filtered or unexported fields
}

func NewKdniaoConfig

func NewKdniaoConfig(eBusinessId, appKey string) KdniaoConfig

func (KdniaoConfig) GetAppKey

func (req KdniaoConfig) GetAppKey() string

func (KdniaoConfig) GetEBusinessId

func (req KdniaoConfig) GetEBusinessId() string

func (*KdniaoConfig) SetAppKey

func (req *KdniaoConfig) SetAppKey(appKey string) *KdniaoConfig

func (*KdniaoConfig) SetEBusinessId

func (req *KdniaoConfig) SetEBusinessId(eBusinessId string) *KdniaoConfig

type KdniaoLogger

type KdniaoLogger struct {
}

func (*KdniaoLogger) Debug

func (logs *KdniaoLogger) Debug(args ...interface{})

func (*KdniaoLogger) Error

func (logs *KdniaoLogger) Error(args ...interface{})

func (*KdniaoLogger) Info

func (logs *KdniaoLogger) Info(args ...interface{})

func (*KdniaoLogger) Panic

func (logs *KdniaoLogger) Panic(args ...interface{})

func (*KdniaoLogger) Warn

func (logs *KdniaoLogger) Warn(args ...interface{})

type KdniaoLoggerInterface

type KdniaoLoggerInterface interface {
	Error(args ...interface{})
	Info(args ...interface{})
	Debug(args ...interface{})
	Warn(args ...interface{})
	Panic(args ...interface{})
}

func NewKdniaoLogger

func NewKdniaoLogger() KdniaoLoggerInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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