diff options
Diffstat (limited to 'types/protocol')
| -rw-r--r-- | types/protocol/protocol.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/types/protocol/protocol.go b/types/protocol/protocol.go index 6e003f7..e35de2b 100644 --- a/types/protocol/protocol.go +++ b/types/protocol/protocol.go @@ -1,5 +1,7 @@ +// package protocol contains hte public type that have to do with VPN protocols package protocol +// Protocol defines an 'enumeration' of protocols type Protocol int8 const ( @@ -11,6 +13,7 @@ const ( WireGuard ) +// New creates a new protocol type from a string func New(p string) Protocol { switch p { case "openvpn": |
