MCPcopy Create free account

hub / github.com/Mawthuq-Software/Wireguard-Manager-and-API / functions

Functions55 in github.com/Mawthuq-Software/Wireguard-Manager-and-API

↓ 28 callersFunctionsentStandardRes
(res http.ResponseWriter, responseMap map[string]string, httpStatusCode int)
src/api/router/sendResponse.go:10
↓ 15 callersFunctionErrorHandler
(message string, err error)
src/logger/errorHandler.go:5
↓ 6 callersFunctionparseResponse
(req *http.Request, schema interface{})
src/api/router/parseResponse.go:9
↓ 5 callersFunctioncloseInstance
(client *wgctrl.Client)
src/manager/manager.go:25
↓ 5 callersFunctioncreateInstance
()
src/manager/manager.go:21
↓ 4 callersFunctionParseIP
(address string)
src/manager/manager.go:47
↓ 4 callersFunctionParseKey
(key string)
src/manager/manager.go:40
↓ 4 callersFunctionaddIP
(instance netlink.Link, ipAddr *netlink.Addr)
src/network/network.go:22
↓ 2 callersFunctionAddKey
(interfaceName string, ipv4Address string, ipv6Address string, publicStr string, presharedStr string)
src/manager/addKey.go:12
↓ 2 callersFunctionAddPeersInterface
(interfaceName string, pk string, listenPort int, peers []wgtypes.PeerConfig)
src/manager/addPeersInterface.go:10
↓ 2 callersFunctionDeleteKey
(interfaceName string, publicStr string)
src/manager/deleteKey.go:10
↓ 2 callersFunctionDisableKey
(keyID string)
src/db/disableKey.go:11
↓ 2 callersFunctionGetInterfaces
()
src/manager/getInterfaces.go:11
↓ 2 callersFunctioncreateWG
(PrivateKey string, PublicKey string, ListenPort int, IPv4Address string, IPv6Address string)
src/db/createWG.go:7
↓ 2 callersFunctiongeneratePeerArray
()
src/db/generatePeerArray.go:14
↓ 2 callersFunctionsendKeysRes
(res http.ResponseWriter, responseStruct db.ReturnKeysRes, httpStatusCode int)
src/api/router/sendResponse.go:17
↓ 2 callersFunctionsendSubsRes
(res http.ResponseWriter, responseStruct db.ReturnSubsRes, httpStatusCode int)
src/api/router/sendResponse.go:24
↓ 2 callersFunctionupdatePeerBW
(currentPeer wgtypes.Peer)
src/db/dbAutoChecks.go:76
↓ 1 callersFunctionAPI
()
src/api/apiServer.go:17
↓ 1 callersFunctionAddRemovePeer
(peer wgtypes.Peer, wgIntName string)
src/manager/addRemovePeer.go:11
↓ 1 callersFunctionAddRemovePeers
()
src/db/dbAutoChecks.go:15
↓ 1 callersFunctionAutoStart
()
src/autocheck/autocheck.go:11
↓ 1 callersFunctionBWPeerCheck
()
src/db/dbAutoChecks.go:34
↓ 1 callersFunctionCreateKey
(pubKey string, preKey string, bwLimit int64, subEnd string, ipIndex int)
src/db/createKey.go:15
↓ 1 callersFunctionDBStart
()
src/db/db.go:17
↓ 1 callersFunctionDeleteKey
(keyID string)
src/db/deleteKey.go:12
↓ 1 callersFunctionEnableKey
(keyID string)
src/db/enableKey.go:11
↓ 1 callersFunctionGetUserSubscription
(keyID string)
src/db/subscription.go:8
↓ 1 callersFunctionLoadConfig
()
src/config/config.go:7
↓ 1 callersFunctionLoggerSetup
()
src/logger/logger.go:10
↓ 1 callersFunctionNewRouter
()
src/api/router/router.go:9
↓ 1 callersFunctionReturnKeys
()
src/db/returnKeys.go:14
↓ 1 callersFunctionReturnSubscriptions
()
src/db/returnSubscriptions.go:14
↓ 1 callersFunctionSetSubscription
(keyID string, bwLimit int64, subExpiry string, bwReset bool)
src/db/setSubscription.go:11
↓ 1 callersFunctionSetupWG
()
src/network/network.go:12
↓ 1 callersFunctionWGStart
()
src/db/wgServerStartup.go:12
↓ 1 callersFunctiongenerateIPs
()
src/db/db.go:40
↓ 1 callersFunctionipCheck
(wg0 netlink.Link)
src/network/network.go:32
↓ 1 callersFunctionreturnNewLink
(l Link)
src/manager/manager.go:36
MethodAttrs
https://github.com/vishvananda/netlink/blob/master/link.go
src/manager/manager.go:13
MethodAttrs
()
src/manager/manager.go:30
MethodType
()
src/manager/manager.go:14
MethodType
()
src/manager/manager.go:33
FunctionauthMiddleware
(handler http.Handler)
src/api/router/authMiddleware.go:9
FunctiongetKeySub
(res http.ResponseWriter, req *http.Request)
src/api/router/getKeySubscription.go:14
FunctiongetKeys
(res http.ResponseWriter, req *http.Request)
src/api/router/getKeys.go:9
FunctiongetSubscriptions
(res http.ResponseWriter, req *http.Request)
src/api/router/getSubscriptions.go:9
FunctionkeyCreate
(res http.ResponseWriter, req *http.Request)
src/api/router/keyCreate.go:18
FunctionkeyDisable
(res http.ResponseWriter, req *http.Request)
src/api/router/keyDisable.go:14
FunctionkeyEnable
(res http.ResponseWriter, req *http.Request)
src/api/router/keyEnable.go:14
FunctionkeyRemove
(res http.ResponseWriter, req *http.Request)
src/api/router/keyRemove.go:14
FunctionkeySetSubscription
(res http.ResponseWriter, req *http.Request)
src/api/router/keySetSubcription.go:17
Functionmain
()
main.go:15
FunctionsetCorsHeader
(res http.ResponseWriter, req *http.Request)
src/api/router/headerMiddleware.go:21
FunctionsetHeader
(hand http.Handler)
src/api/router/headerMiddleware.go:7