client

package
v0.0.0-...-b394286 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 11 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 interface {
	GetOne(id string) (*ers.Instance, error)
	GetPaged(pageStart, pageSize int) ([]ers.Instance, error)

	Migrate(instanceID string) error
	Switch(brokerID string) error

	Close()
}

func NewErsClient

func NewErsClient() (Client, error)

type Fake

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

func NewFake

func NewFake() *Fake

func (*Fake) Close

func (f *Fake) Close()

func (*Fake) GetClient

func (f *Fake) GetClient() *http.Client

func (*Fake) GetOne

func (f *Fake) GetOne(id string) (*ers.Instance, error)

func (*Fake) GetPaged

func (f *Fake) GetPaged(pageStart, pageSize int) ([]ers.Instance, error)

func (*Fake) Migrate

func (f *Fake) Migrate(instanceID string) error

func (*Fake) Switch

func (f *Fake) Switch(brokerID string) error

type HTTPClient

type HTTPClient struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(logger logger.Logger) (*HTTPClient, error)

func (*HTTPClient) Close

func (c *HTTPClient) Close()

Jump to

Keyboard shortcuts

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