client

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	Namespace = "client"
	Version   = "5.8"
	Path      = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*restful.Client

	RestAPITripper restful.RestAPITripper
}

func NewClient

func NewClient(ctx context.Context, rt restful.RestAPITripper) (*Client, error)

NewClient creates and returns a new client with the ServiceContent field filled in.

func (*Client) MarshalJSON

func (c *Client) MarshalJSON() ([]byte, error)

func (*Client) UnmarshalJSON

func (c *Client) UnmarshalJSON(b []byte) error

func (*Client) Valid

func (c *Client) Valid() bool

Valid returns whether or not the client is valid and ready for use. This should be called after unmarshalling the client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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