server

package
v1.0.61 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle added in v1.0.9

func Handle(lp *_types.LogPackage, protocol string, size int)

func ListenGRPC added in v1.0.9

func ListenGRPC() error

func ListenHTTP

func ListenHTTP() error

func ListenPROM added in v1.0.9

func ListenPROM() error

func ListenUDP

func ListenUDP() error

func MustListenGRPC added in v1.0.9

func MustListenGRPC()

func MustListenHTTP added in v1.0.9

func MustListenHTTP()

func MustListenPROM added in v1.0.9

func MustListenPROM()

func MustListenUDP added in v1.0.9

func MustListenUDP()

func NewRouter

func NewRouter() *gin.Engine

Types

type SiteVerifyResponse added in v1.0.9

type SiteVerifyResponse struct {
	Success     bool      `json:"success"`
	Score       float64   `json:"score"`
	Action      string    `json:"action"`
	ChallengeTS time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	ErrorCodes  []string  `json:"error-codes"`
}

func CheckRecaptcha added in v1.0.9

func CheckRecaptcha(secret, response string) (*SiteVerifyResponse, error)

Jump to

Keyboard shortcuts

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