runner

package
v0.0.0-...-b905d37 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Running []*Service
)

Functions

func CheckRunning

func CheckRunning()

Types

type App

type App struct {
	Router *mux.Router
}

func (*App) Init

func (a *App) Init()

func (*App) Run

func (a *App) Run(addr string)

type AppError

type AppError struct {
	Err
}

func (*AppError) Error

func (ae *AppError) Error() string

type DockerError

type DockerError struct {
	Err
}

func (*DockerError) Error

func (de *DockerError) Error() string

type Err

type Err struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type Error

type Error struct {
	Msg  string `json:"msg"`
	Body string `json:"body"`
}

type GeneralErr

type GeneralErr interface {
	Error() string
}

type Health

type Health struct {
	Msg string `json:"msg"`
}

type Response

type Response struct {
	Services []*Service `json:"services,omitempty"`
	Error    `json:"error,omitempty"`
}

type Service

type Service struct {
	Name        string           `json:"name"`
	ID          string           `json:"id"`
	Container   docker.Container `json:"container"`
	TargetCount int              `json:"target_count"`
	ActualCount int              `json:"actual_count"`
}

Jump to

Keyboard shortcuts

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