gin

package
Version: v0.0.0-...-2145220 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 16 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, wd string, buildArgs []string) Builder

type Config

type Config struct {
	Laddr    string `json:"laddr"`
	Port     int    `json:"port"`
	ProxyTo  string `json:"proxy_to"`
	KeyFile  string `json:"key_file"`
	CertFile string `json:"cert_file"`
}

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL