judge

package
v0.0.0-...-ed4807d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJudgement

func NewJudgement() *proxy.Judgement

Types

type Judge

type Judge struct {
	ListenAddress string
	//Set to true if you want support for judge being behind the cloudflare infrastructure
	CloudFlareSupport bool
	//List of trusted gateways. If your judge instance is behind some load-balancer/gateway
	//which adds it's ip to x-forwarded-for header you might want to add it here.
	TrustedGatewaysIps []string
	// contains filtered or unexported fields
}

func Create

func Create() *Judge

Create new Judge instance

func (*Judge) CheckReverse

func (j *Judge) CheckReverse(ip string) []string

Checks if name contain certain markers

func (*Judge) SetLogger

func (j *Judge) SetLogger(log *logrus.Logger)

func (*Judge) Start

func (j *Judge) Start()

Jump to

Keyboard shortcuts

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