http

package
v1.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 3 * time.Second
View Source
var Dev bool

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, options ...Option) (*Client, error)

func (*Client) StartUniverseWithConfig

func (c *Client) StartUniverseWithConfig(name string, config *dream.Config) error

func (*Client) Status

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

func (*Client) Universe

func (c *Client) Universe(name string) *Universe

type Option

type Option func(c *Client) error

func Auth

func Auth(token string) Option

func Provider

func Provider(provider string) Option

func Timeout

func Timeout(duration time.Duration) Option

func URL

func URL(url string) Option

func Unsecure

func Unsecure() Option

does not check Certificate Chain

type Status

type Status map[string]UniverseStatus

type Universe

type Universe struct {
	Name string
	// contains filtered or unexported fields
}

func (*Universe) Id

func (u *Universe) Id() (resp api.UniverseInfo, err error)

func (*Universe) Inject

func (u *Universe) Inject(ops ...inject.Injectable) error

func (*Universe) Kill

func (u *Universe) Kill() error

func (*Universe) KillService

func (u *Universe) KillService(service string) error

func (*Universe) KillSimple

func (u *Universe) KillSimple(simple string) error

func (*Universe) Status

func (u *Universe) Status() (resp api.Echart, err error)

type UniverseStatus

type UniverseStatus struct {
	NodeCount int `json:"node-count"`
	Nodes     map[string][]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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