Documentation
¶
Index ¶
- Variables
- func CompareHash(h1, h2 []byte) bool
- func DecryptAES(block cipher.Block, text []byte) ([]byte, error)
- func EncryptAES(block cipher.Block, text []byte) ([]byte, error)
- func FailedRequest(c *fiber.Ctx, error string, err error) error
- func GenerateKey() ([]byte, error)
- func GenerateToken(tkLength int32) string
- func Hash(bytes []byte) []byte
- func InvalidRequest(c *fiber.Ctx) error
- func Node64(id int64) string
- func NodeTo64(id string) int64
- func PostRaw(url string, body map[string]interface{}) (map[string]interface{}, error)
- func PostRequest(url string, body map[string]interface{}) (map[string]interface{}, error)
- func SuccessfulRequest(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Port int = 0
View Source
var UDPPort int = 0
Functions ¶
func CompareHash ¶
func DecryptAES ¶
DecryptAES decryptes text with key using AES-256 GCM
func EncryptAES ¶
EncryptAES encrypts text with key using AES-256 GCM
func FailedRequest ¶
func GenerateKey ¶
func GenerateToken ¶
func InvalidRequest ¶
func InvalidRequest(c *fiber.Ctx) error
func PostRequest ¶
func SuccessfulRequest ¶
func SuccessfulRequest(c *fiber.Ctx) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.