bandwidth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bandwidth represents the SiteHost `/bandwidth` API endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a Service to work with API Jobs.

func New

func New(c *api.Client) *Client

New is an initialisation function.

func (*Client) ListIPAddresses

func (s *Client) ListIPAddresses(ctx context.Context) (response ListIPAddressesResponse, err error)

ListIPAddresses fetchs a list of IP addresses and subnets.

type ListIPAddressesResponse

type ListIPAddressesResponse struct {
	models.APIResponse
	Return map[string]models.IPAddress `json:"return"`
}

ListIPAddressesResponse represents a response from listing IP addresses with the `/bandwidth/get_ip_list.json` endpoint.

Jump to

Keyboard shortcuts

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