server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconMockServer

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

func NewBeaconMockServer

func NewBeaconMockServer(logger *slog.Logger, ip string, port uint16, config *db.Config) (*BeaconMockServer, error)

func (*BeaconMockServer) GetPort

func (s *BeaconMockServer) GetPort() uint16

Get the port the server is listening on

func (*BeaconMockServer) Start

func (s *BeaconMockServer) Start(wg *sync.WaitGroup) error

Starts listening for incoming HTTP requests

func (*BeaconMockServer) Stop

func (s *BeaconMockServer) Stop() error

Stops the HTTP listener

Jump to

Keyboard shortcuts

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