Documentation
¶
Index ¶
- type WireGuardRepo
- func (wg *WireGuardRepo) AddServerPeer(ctx context.Context, client *wgtypes.ServerPeer) (err error)
- func (*WireGuardRepo) GetPeerStats(ctx context.Context) (stats map[wgtypes.Key]entity.WireGuardPeerStats, err error)
- func (wg *WireGuardRepo) LoadServerConfig(ctx context.Context, cfg *wgtypes.ServerConfig) (err error)
- func (wg *WireGuardRepo) ReloadServer(ctx context.Context) (err error)
- func (wg *WireGuardRepo) RemoveServerPeer(ctx context.Context, name string) (err error)
- func (wg *WireGuardRepo) StartServer(ctx context.Context) (err error)
- func (wg *WireGuardRepo) StopServer(ctx context.Context) (err error)
- func (wg *WireGuardRepo) WriteServerConfig(ctx context.Context) (err error)
- type WireGuardRepoParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WireGuardRepo ¶
type WireGuardRepo struct {
// contains filtered or unexported fields
}
func New ¶
func New(params *WireGuardRepoParams) *WireGuardRepo
func (*WireGuardRepo) AddServerPeer ¶
func (wg *WireGuardRepo) AddServerPeer(ctx context.Context, client *wgtypes.ServerPeer) (err error)
func (*WireGuardRepo) GetPeerStats ¶
func (*WireGuardRepo) GetPeerStats(ctx context.Context) (stats map[wgtypes.Key]entity.WireGuardPeerStats, err error)
func (*WireGuardRepo) LoadServerConfig ¶
func (wg *WireGuardRepo) LoadServerConfig(ctx context.Context, cfg *wgtypes.ServerConfig) (err error)
func (*WireGuardRepo) ReloadServer ¶
func (wg *WireGuardRepo) ReloadServer(ctx context.Context) (err error)
func (*WireGuardRepo) RemoveServerPeer ¶
func (wg *WireGuardRepo) RemoveServerPeer(ctx context.Context, name string) (err error)
func (*WireGuardRepo) StartServer ¶
func (wg *WireGuardRepo) StartServer(ctx context.Context) (err error)
func (*WireGuardRepo) StopServer ¶
func (wg *WireGuardRepo) StopServer(ctx context.Context) (err error)
func (*WireGuardRepo) WriteServerConfig ¶
func (wg *WireGuardRepo) WriteServerConfig(ctx context.Context) (err error)
type WireGuardRepoParams ¶
Click to show internal directories.
Click to hide internal directories.