core

package
v0.0.0-...-fb35de2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompressNone = iota
	CompressGzip = iota
	CompressBzip = iota
)

Variables

This section is empty.

Functions

func AesDecode

func AesDecode(data []byte, key []byte, zip int, checkNonce func([]byte) error) ([]byte, error)

func AesEncode

func AesEncode(data []byte, key []byte, zip int, buildNonce func(int) ([]byte, error)) ([]byte, error)

func GenerateRandomBytes

func GenerateRandomBytes(size int) ([]byte, error)

func GetCompressionType

func GetCompressionType(compressionTypeString string) (int, error)

func KursDataHandler

func KursDataHandler(server *Server, w *bytes.Buffer, req string)

func ServerStart

func ServerStart(portNumber int, _compressionType int, kursFolder string) error

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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