server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AddressKey string = "address"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(network string, httpPort, interval, payout, proxyCount, queueCap int) *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