api

package
v0.0.0-...-5d951de Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rest.Client
}

func NewReverseProxyClient

func NewReverseProxyClient(ctx context.Context) *Client

func (*Client) AddRedirect

func (c *Client) AddRedirect(ctx context.Context, redirect types.ProxyRedirect) error

func (*Client) GetRedirects

func (c *Client) GetRedirects(ctx context.Context) ([]types.ProxyRedirect, error)

func (*Client) RemoveRedirect

func (c *Client) RemoveRedirect(ctx context.Context, id string) error

Jump to

Keyboard shortcuts

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