Documentation ¶
Index ¶
- Constants
- Variables
- func GetCreds(conf config.CertConfig) (credentials.TransportCredentials, error)
- func InitServer(conf *config.Config) (*wireguard, error)
- func SecureConn(conf config.CertConfig) ([]grpc.ServerOption, error)
- func WireGuardCmd(cmd string) ([]byte, error)
- type Authenticator
- type Interface
- type Peer
Constants ¶
View Source
const (
AUTH_KEY = "wg"
)
Variables ¶
Functions ¶
func GetCreds ¶
func GetCreds(conf config.CertConfig) (credentials.TransportCredentials, error)
func InitServer ¶
func SecureConn ¶
func SecureConn(conf config.CertConfig) ([]grpc.ServerOption, error)
SecureConn enables communication over secure channel
func WireGuardCmd ¶
Types ¶
type Authenticator ¶
func NewAuthenticator ¶
func NewAuthenticator(Skey, AKey string) Authenticator
Click to show internal directories.
Click to hide internal directories.