siegeserver

package
v0.0.0-...-f77230d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedResponse = errors.New("unexpected response code")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	APIKey string
	Server string
}

func NewClient

func NewClient(apikey, server string) (*Client, error)

func (*Client) Shutdown

func (c *Client) Shutdown(ctx context.Context, listenerID string) error

func (*Client) Startup

func (c *Client) Startup(ctx context.Context) (*ListenerConfig, error)

func (*Client) Update

func (c *Client) Update(ctx context.Context, args ListenerUpdate) error

type ListenerConfig

type ListenerConfig struct {
	ListenerID string `json:"listenerID"`
}

type ListenerShutdownRequest

type ListenerShutdownRequest struct {
	ListenerID string `json:"listenerID"`
}

type ListenerUpdate

type ListenerUpdate struct {
	ListenerID string   `json:"listenerID"`
	Schemas    []string `json:"schemas"`
	Metrics    string   `json:"metrics"`
}

Jump to

Keyboard shortcuts

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