Documentation
¶
Index ¶
Constants ¶
View Source
const ( SIGHUP = Signal(0x1) SIGUSER1 = Signal(0xa) SIGUSER2 = Signal(0xc) SIGTERM = Signal(0xf) )
List of signals can be used in the openvpn management interface
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
VirtualIP string
RealIP string
CommonName string
BytesReceived string
BytesSent string
ConnectedSince string
}
Client represent an openvpn status user
func ParseClient ¶
type Controller ¶
type Controller interface {
Signal(sig os.Signal) error
Close()
Getpid() (int, error)
GetLogs() (string, error)
GetStates() ([]State, error)
GetStatus() (Status, error)
GetClients() ([]Client, error)
GetRouting() ([]Route, error)
GetGlobalStats() (GlobalStats, error)
SubscribeState(ch chan State) error
SubscribeByteCount(chIn, chOut chan int64) error
SubscribeLog(ch chan string) error
}
Controller controls openvpn process via its management interface
type Route ¶
Routing table
func ParseRoute ¶
func (*Route) RealIsIPv4 ¶
func (*Route) RealIsIPv6 ¶
func (*Route) VirtualIsIPv4 ¶
func (*Route) VirtualIsIPv6 ¶
type Signal ¶
type Signal int
A Signal is a number describing a process signal. It implements os.Signal interface.
type Status ¶
type Status struct {
Clients []Client
Routing []Route
GlobalStats GlobalStats
}
Status openvpn
Click to show internal directories.
Click to hide internal directories.