Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountStorage ¶ added in v1.20.13
type GrpcServer ¶ added in v1.20.13
type GrpcServer struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶ added in v1.20.13
func NewGrpcServer(addr string, ch chan<- *LogPackageMeta) (*GrpcServer, error)
func (*GrpcServer) Listen ¶ added in v1.20.13
func (s *GrpcServer) Listen() error
func (*GrpcServer) Stop ¶ added in v1.20.13
func (s *GrpcServer) Stop() error
type HttpServer ¶ added in v1.20.13
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶ added in v1.20.13
func NewHttpServer(addr string) (*HttpServer, error)
func (*HttpServer) Listen ¶ added in v1.20.13
func (srv *HttpServer) Listen() error
func (*HttpServer) Stop ¶ added in v1.20.13
func (srv *HttpServer) Stop() error
type LogPackageMeta ¶ added in v1.20.13
type LogPackageMeta struct { *_types.LogPackage Protocol string Size int }
type LogServer ¶ added in v1.20.13
type LogServer struct {
// contains filtered or unexported fields
}
func NewLogServer ¶ added in v1.20.13
func NewLogServer( httpaddr string, udpAddr string, grpcAddr string, logStorage LogStorage, countStorage CountStorage, ) (result *LogServer, err error)
type LogStorage ¶ added in v1.20.13
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)
type UdpServer ¶ added in v1.20.13
type UdpServer struct {
// contains filtered or unexported fields
}
func NewUdpServer ¶ added in v1.20.13
func NewUdpServer(addr string, ch chan<- *LogPackageMeta) (*UdpServer, error)
Click to show internal directories.
Click to hide internal directories.