solax

package
v0.0.0-...-0c1218e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRealtimeInfo

func GetRealtimeInfo[K any](ctx context.Context, opts ...OptionFunc) (*K, error)

func LocallyReachable

func LocallyReachable(apiAddr string) (bool, error)

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 WithURL

func WithURL(url string) OptionFunc

type Response

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

type Result

type Result result

func (*Result) UnmarshalJSON

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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