util

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package util contains utilities for use in all transport implementations

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorAlreadyRunning = errors.New("already running")
	ErrorNotRunning     = errors.New("not running")
)

Various errors for help with signalling erroneous state

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Path             string   `toml:"path" comment:"path to binary"`
	Args             string   `toml:"args" comment:"args to binary"`
	WorkingDirectory string   `toml:"working_directory" comment:"working directory for binary"`
	Environment      []string `toml:"environment" comment:"environment variables to add to the execution"`
	CopyEnv          bool     `toml:"copy_env" comment:"copy the environment of the bot when creating "`
}

BaseConfig holds data that is common to all Transport implementations

type TransportStatus

type TransportStatus int

TransportStatus is an int alias that indicates the status of a Transport

const (
	Unknown TransportStatus = iota
	Running
	Stopped
)

Various statuses for transports

Jump to

Keyboard shortcuts

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