dispatcher

package
v0.0.0-...-ebe2018 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNomadClient

func NewNomadClient(cfg NomadConfig) *client

func Set

func Set(d Dispatcher)

Types

type Dispatcher

type Dispatcher interface {
	Dispatch(jobID, workspaceID, layoutID string) error
}

func Get

func Get() Dispatcher

type Mem

type Mem struct {
	Store []string
	sync.Mutex
}

func NewInMemory

func NewInMemory() *Mem

func (*Mem) Dispatch

func (c *Mem) Dispatch(j, w, l string) error

type NomadConfig

type NomadConfig struct {
	Address    string
	Username   string
	Password   string
	Datacenter string
	Image      string
	CPU        string
	Memory     string
	ConsulAddr string
}

Jump to

Keyboard shortcuts

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