quasar

package module
v0.0.0-...-380612b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2017 License: MIT Imports: 24 Imported by: 0

README

quasar

Process manager of daemon(mysqld, redis, docker container, etc...) for testing.

Documentation

Index

Constants

View Source
const (
	DockerDaemon daemonType = 1 + iota
	MySQLDaemon
	RedisDaemon
	RawCommandDaemon
)
View Source
const (
	DefaultPort = 3273
)

Variables

View Source
var (
	DaemonNameIsNotFoundError = errors.New("daemon name is not found.")
)

Functions

func ParseConfig

func ParseConfig(filename string) (config, error)

func Run

func Run(c config)

func Serve

func Serve(c config, inss map[string]instance) error

Types

type Client

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

func NewClient

func NewClient(c config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) EnvClose

func (c *Client) EnvClose(daemon, envname string) error

func (*Client) GetEnv

func (c *Client) GetEnv(daemon, envname string) (string, error)

type RPCArgs

type RPCArgs struct {
	Name, Envname string
}

type Server

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

func (*Server) Close

func (s *Server) Close(args *RPCArgs, resp *string) error

func (*Server) GetEnv

func (s *Server) GetEnv(args *RPCArgs, resp *string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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