solaxcloud

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(c *resty.Client, r *resty.Request) (*resty.Request, error)

func WithDebug

func WithDebug(debug bool) OptionFunc

func WithDefaultURL

func WithDefaultURL() OptionFunc

func WithSNAndTokenID

func WithSNAndTokenID(sn, tokenID string) OptionFunc

func WithURL

func WithURL(url string) OptionFunc

type Response

type Response struct {
	Success   bool   `json:"success"`
	Exception string `json:"exception"`
	Result    Result `json:"result"`
}

func GetRealtimeInfo

func GetRealtimeInfo(ctx context.Context, opts ...OptionFunc) (*Response, error)

type Result

type Result result

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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