instance

package
v0.0.0-...-1d7c9fa Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient(instance *Instance) *HTTPClient

func NewHTTPClientFromString

func NewHTTPClientFromString(instanceURL string) (*HTTPClient, error)

func (*HTTPClient) Status

func (c *HTTPClient) Status() (*Status, error)

func (*HTTPClient) Version

func (c *HTTPClient) Version() (*Version, error)

type Instance

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

func NewFromStr

func NewFromStr(in string) (*Instance, error)

func (*Instance) Name

func (i *Instance) Name() string

func (*Instance) URL

func (i *Instance) URL() *url.URL

type Status

type Status struct {
	Cache   string            `json:"cache"`
	Couchdb string            `json:"couchdb"`
	FS      string            `json:"fs"`
	Latency map[string]string `json:"latency"`
	Message string            `json:"message"`
	Status  string            `json:"status"`
}

type Storage

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

func NewStorage

func NewStorage(appName string) *Storage

func (*Storage) Dir

func (s *Storage) Dir() string

func (*Storage) Forget

func (s *Storage) Forget(inst *Instance) error

func (*Storage) List

func (s *Storage) List() ([]Instance, error)

func (*Storage) Load

func (s *Storage) Load(instanceName string) (*Instance, error)

func (*Storage) Save

func (s *Storage) Save(inst *Instance) error

type Version

type Version struct {
	BuildMode      string `json:"build_mode"`
	BuildTime      string `json:"build_time"`
	RuntimeVersion string `json:"runtime_version"`
	Version        string `json:"version"`
}

Jump to

Keyboard shortcuts

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