Documentation ¶
Index ¶
- type Proc
- func (p *Proc) CleanUnsuppportedV1Flags()
- func (p *Proc) Restart() error
- func (p *Proc) SetDataDir(dataDir string)
- func (p *Proc) SetDiscovery(url string)
- func (p *Proc) SetName(name string)
- func (p *Proc) SetPeerTLS(certFile, keyFile, caFile string)
- func (p *Proc) SetSnapCount(cnt int)
- func (p *Proc) SetV1Addr(addr string)
- func (p *Proc) SetV1PeerAddr(addr string)
- func (p *Proc) SetV1Peers(peers []string)
- func (p *Proc) SetV2PeerURL(url string)
- func (p *Proc) Start() error
- func (p *Proc) Stop()
- func (p *Proc) Terminate()
- type ProcGroup
- func (pg ProcGroup) CleanUnsuppportedV1Flags()
- func (pg ProcGroup) InheritDataDir(opg ProcGroup)
- func (pg ProcGroup) SetPeerTLS(certFile, keyFile, caFile string)
- func (pg ProcGroup) SetSnapCount(count int)
- func (pg ProcGroup) Start() error
- func (pg ProcGroup) Stop()
- func (pg ProcGroup) Terminate()
- func (pg ProcGroup) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proc ¶
type Proc struct { *exec.Cmd Name string DataDir string URL string PeerURL string // contains filtered or unexported fields }
func NewProcWithDefaultFlags ¶
func NewProcWithV1Flags ¶
func NewProcWithV2Flags ¶
func (*Proc) CleanUnsuppportedV1Flags ¶
func (p *Proc) CleanUnsuppportedV1Flags()
func (*Proc) SetDataDir ¶
func (*Proc) SetDiscovery ¶
func (*Proc) SetPeerTLS ¶
func (*Proc) SetSnapCount ¶
func (*Proc) SetV1PeerAddr ¶
func (*Proc) SetV1Peers ¶
func (*Proc) SetV2PeerURL ¶
type ProcGroup ¶
type ProcGroup []*Proc
func NewProcGroupWithV1Flags ¶
func (ProcGroup) CleanUnsuppportedV1Flags ¶
func (pg ProcGroup) CleanUnsuppportedV1Flags()
func (ProcGroup) InheritDataDir ¶
func (ProcGroup) SetPeerTLS ¶
func (ProcGroup) SetSnapCount ¶
Click to show internal directories.
Click to hide internal directories.