Documentation ¶
Overview ¶
Package mio provides a local RPC server to configure WireGuard. Its purpose is to try to reduce the number of programs running with high priviledges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandBash string
View Source
var CommandWg string
View Source
var CommandWgQuick string
Functions ¶
Types ¶
type ConfigureDeviceQ ¶
type ForwardingQ ¶
type ForwardingQ struct { Token []byte // put token here for simplicity Type ForwardingType Enable bool }
type ForwardingType ¶
type ForwardingType uint8
const ( ForwardingTypeInvalid ForwardingType = iota ForwardingTypeIPv4 )
type Mio ¶
type Mio struct {
// contains filtered or unexported fields
}
func (*Mio) ConfigureDevice ¶
func (sm *Mio) ConfigureDevice(q ConfigureDeviceQ, r *string) error
func (*Mio) Forwarding ¶
func (sm *Mio) Forwarding(q ForwardingQ, r *string) error
func (*Mio) RemoveDevice ¶
func (sm *Mio) RemoveDevice(q RemoveDeviceQ, r *string) error
type RemoveDeviceQ ¶
Click to show internal directories.
Click to hide internal directories.