client

package
v0.0.0-...-aaf5496 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NBHttpClient

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

func NewNBHttpClient

func NewNBHttpClient() (*NBHttpClient, error)

func (*NBHttpClient) Login

func (c *NBHttpClient) Login() error

func (*NBHttpClient) RefreshToken

func (c *NBHttpClient) RefreshToken() error

func (*NBHttpClient) Request

func (c *NBHttpClient) Request(reqRespParam *ReqRespParam) error

type ReqRespParam

type ReqRespParam struct {
	URL            string
	Method         string `default:"POST"`
	ContentType    string `default:"application/json"`
	ReqBody        []byte
	RespBody       []byte
	RespStatusCode int
}

Jump to

Keyboard shortcuts

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