Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OtherSystemProxy ¶
type OtherSystemProxy struct{}
func (*OtherSystemProxy) Status ¶
func (p *OtherSystemProxy) Status() (*SystemProxyStatus, error)
func (*OtherSystemProxy) TurnOff ¶
func (p *OtherSystemProxy) TurnOff() error
func (*OtherSystemProxy) TurnOn ¶
func (p *OtherSystemProxy) TurnOn(addrport string) error
type SystemProxy ¶
type SystemProxy interface {
TurnOn(addrPort string) error
TurnOff() error
Status() (*SystemProxyStatus, error)
}
func NewSystemProxy ¶
func NewSystemProxy() SystemProxy
type SystemProxyStatus ¶
type SystemProxyStatus struct {
State bool `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.