Documentation ¶
Index ¶
- Constants
- func GenSSHClientConfig(hostport, username, keyPath, passphrase string) (*ssh.ClientConfig, error)
- type DNSClient
- type Mogura
- func (m *Mogura) Close() error
- func (m *Mogura) CloseLocalConn() error
- func (m *Mogura) CloseRemoteConn() error
- func (m *Mogura) ConnectSSH() error
- func (m *Mogura) ErrChan() <-chan error
- func (m *Mogura) GoResolveCycle(interval int64) <-chan error
- func (m *Mogura) Listen() error
- func (m *Mogura) ResolveRemote() error
- type MoguraConfig
- type Target
Constants ¶
View Source
const ( ENV_MOGURA_PASSPHRASE = "MOGURA_PASSPHRASE" WarningThresholdForRetrying = 3 )
Variables ¶
This section is empty.
Functions ¶
func GenSSHClientConfig ¶
func GenSSHClientConfig(hostport, username, keyPath, passphrase string) (*ssh.ClientConfig, error)
Types ¶
type Mogura ¶
type Mogura struct { Config MoguraConfig // contains filtered or unexported fields }
func GoMogura ¶
func GoMogura(c MoguraConfig) (*Mogura, error)
error is ssh connection and local listener error. error channel transfer flow error
func (*Mogura) CloseLocalConn ¶
func (*Mogura) CloseRemoteConn ¶
func (*Mogura) ConnectSSH ¶
func (*Mogura) GoResolveCycle ¶
func (*Mogura) ResolveRemote ¶
type MoguraConfig ¶
Click to show internal directories.
Click to hide internal directories.