app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunClient

func RunClient(ctx context.Context, addr string) (string, error)

Types

type Server

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

func NewServer

func NewServer(lg logger.Logger, bind string) (*Server, error)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Stop

func (s *Server) Stop()

type Services

type Services struct {
	Logger    logger.Logger
	PoW       pow.PoW
	WoW       wow.WoW
	Sampler   stat.CPUSampler
	Complexer complexer.Complexer
	Manager   manager.Manager
	Limiter   limiter.StringLimiter
}

func NewServices

func NewServices(lg logger.Logger) (*Services, error)

Jump to

Keyboard shortcuts

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