core

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDKClient

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

SDKClient object

func NewSDKClient

func NewSDKClient(token string, ocpcToken string) *SDKClient

NewSDKClient init sdk client

func (*SDKClient) Do

func (c *SDKClient) Do(req *model.Request, resp interface{}) error

Do execute api request

func (SDKClient) OcpcToken added in v1.0.2

func (c SDKClient) OcpcToken() string

OcpcToken get ocpc token

func (*SDKClient) Post

func (c *SDKClient) Post(reqUrl string, reqBytes []byte, resp interface{}) error

Post data through api

func (*SDKClient) SetDebug

func (c *SDKClient) SetDebug(debug bool)

SetDebug set debug mode

func (*SDKClient) SetUser

func (c *SDKClient) SetUser(username string, password string)

SetUser set username password

func (SDKClient) Token

func (c SDKClient) Token() string

Token get token

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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