gin

package
v0.0.0-...-e97aba2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build() error
	Binary() string
	Errors() string
}

func NewBuilder

func NewBuilder(dir string, bin string, useGodep bool) Builder

type Config

type Config struct {
	Port    int    `json:"port"`
	ProxyTo string `json:"proxy_to"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Proxy

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

func NewProxy

func NewProxy(builder Builder, runner Runner) *Proxy

func (*Proxy) Close

func (p *Proxy) Close() error

func (*Proxy) Run

func (p *Proxy) Run(config *Config) error

type Runner

type Runner interface {
	Run() (*exec.Cmd, error)
	Info() (os.FileInfo, error)
	SetWriter(io.Writer)
	Kill() error
}

func NewRunner

func NewRunner(bin string, args ...string) Runner

Directories

Path Synopsis
test_fixtures

Jump to

Keyboard shortcuts

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