dispatcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuckupOption

type BuckupOption struct {
	Do func(*os.File) error
}

type Client

type Client struct {
	HTTPClient *http.Client

	APIBaseURL           string
	APIRequiredParameter RequiredParameter
	APIOptionalParameter OptionalParameter

	BuckupOption *BuckupOption
}

func NewClient

func NewClient(appID, fromDate, toDate string) *Client

func NewClientWithParam

func NewClientWithParam(apiToken, appID, fromDate, toDate string) *Client

func (*Client) DispatchGetRequest

func (c *Client) DispatchGetRequest(endpoint string) ([]byte, error)

func (*Client) GetCSVFileNameByDateRange

func (c *Client) GetCSVFileNameByDateRange() string

func (*Client) SetBuckupOption

func (c *Client) SetBuckupOption(o BuckupOption)

func (*Client) SetOptionalParameter

func (c *Client) SetOptionalParameter(p OptionalParameter)

type OptionalParameter

type OptionalParameter struct {
	Category    string
	MediaSource string
	Reattr      string
}

type RequiredParameter

type RequiredParameter struct {
	APIToken string
	AppID    string
	FromDate string
	ToDate   string
}

Jump to

Keyboard shortcuts

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