data

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewData, NewRepo)

Functions

func NewRepo

func NewRepo(data *Data, logger log.Logger) biz.Repo

Types

type Data

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

func NewData

func NewData(c *conf.Data, logger log.Logger) (dataData *Data, cleanup func(), err error)

type Proxy

type Proxy struct {
	Port     int
	PortLock sync.Mutex
	CmdOut   bytes.Buffer
	CmdErr   bytes.Buffer

	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) GetCanUsePort

func (p *Proxy) GetCanUsePort() (res int, err error)

func (*Proxy) UpdateUseTime

func (p *Proxy) UpdateUseTime()

Jump to

Keyboard shortcuts

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