template

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpClientWg

func DumpClientWg(client *model.Client, server *model.Server) ([]byte, error)

DumpClientWg dump client wg config with go template

func DumpEmail

func DumpEmail(client *model.Client, qrcodePngName string) ([]byte, error)

DumpEmail dump server wg config with go template

func DumpServerWg

func DumpServerWg(clients []*model.Client, server *model.Server) ([]byte, error)

DumpServerWg dump server wg config with go template, write it to file and return bytes

func FormatTime

func FormatTime(t int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL