dashboardd

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
	Port int
	TLS  *types.TLSOptions

	APIURL string
}

Config represents the dashboard configuration

type Dashboardd

type Dashboardd struct {
	Config
	Assets *asset.Collection
	// contains filtered or unexported fields
}

Dashboardd represents the dashboard daemon

func New

func New(cfg Config, opts ...Option) (*Dashboardd, error)

New creates a new Dashboardd.

func (*Dashboardd) Err

func (d *Dashboardd) Err() <-chan error

Err returns a channel to listen for terminal errors on.

func (*Dashboardd) Name

func (d *Dashboardd) Name() string

Name returns the daemon name

func (*Dashboardd) Start

func (d *Dashboardd) Start() error

Start dashboardd

func (*Dashboardd) Stop

func (d *Dashboardd) Stop() error

Stop dashboardd.

type Option

type Option func(*Dashboardd) error

Option is a functional option.

type Path

type Path struct {
	Name    string
	IsDir   bool
	ModTime time.Time
	Size    int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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