Documentation ¶
Index ¶
- Constants
- Variables
- func GetCreds(conf config.Config) (credentials.TransportCredentials, error)
- func InitServer(conf *config.Config) (*wireguard, error)
- func SecureConn(conf *config.Config) ([]grpc.ServerOption, error)
- func WireGuardCmd(cmd string) ([]byte, error)
- type Authenticator
- type IPRuleForWG
- type Interface
- type Peer
- type WGInterface
Constants ¶
View Source
const (
AUTH_KEY = "wg"
)
Variables ¶
Functions ¶
func GetCreds ¶
func GetCreds(conf config.Config) (credentials.TransportCredentials, error)
func InitServer ¶
func SecureConn ¶
func SecureConn(conf *config.Config) ([]grpc.ServerOption, error)
SecureConn enables communication over secure channel
func WireGuardCmd ¶
Types ¶
type Authenticator ¶
func NewAuthenticator ¶
func NewAuthenticator(Skey, AKey string) Authenticator
type IPRuleForWG ¶ added in v1.0.5
type WGInterface ¶ added in v1.0.5
type WGInterface struct { Address string ListenPort uint32 SaveConfig bool PrivateKey string IPRules []IPRuleForWG }
Click to show internal directories.
Click to hide internal directories.