server

package
v0.0.0-...-e13bd63 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

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

func NewCaptcha

func NewCaptcha(hcaptchaSiteKey, hcaptchaSecret string) *Captcha

func (*Captcha) ServeHTTP

func (c *Captcha) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type Config

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

func NewConfig

func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount int, hcaptchaSiteKey, hcaptchaSecret, explorerURL, explorerTxPath string) *Config

type Limiter

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

func NewLimiter

func NewLimiter(proxyCount int, ttl time.Duration) *Limiter

func (*Limiter) ServeHTTP

func (l *Limiter) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type Server

type Server struct {
	chain.TxBuilder
	// contains filtered or unexported fields
}

func NewServer

func NewServer(builder chain.TxBuilder, cfg *Config) *Server

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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