client

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

nginx.client package is the REST API client for the nginx gateway.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client
}

func New

func New(endpoint string, opts ...client.ClientOpt) (*Client, error)

func (*Client) Health

func (c *Client) Health() (Health, error)

func (*Client) Reload

func (c *Client) Reload() error

func (*Client) Reopen

func (c *Client) Reopen() error

func (*Client) Test

func (c *Client) Test() error

type Health

type Health struct {
	Version    string `json:"version"`
	UptimeSecs uint64 `json:"uptime_secs"`
}

type ReqPost

type ReqPost struct{}

func (ReqPost) Accept

func (r ReqPost) Accept() string

func (ReqPost) Method

func (r ReqPost) Method() string

func (ReqPost) Type

func (r ReqPost) Type() string

Jump to

Keyboard shortcuts

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