server

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeSetMockServer

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

func NewNodeSetMockServer

func NewNodeSetMockServer(logger *slog.Logger, ip string, port uint16) (*NodeSetMockServer, error)

func (*NodeSetMockServer) GetManager

func (s *NodeSetMockServer) GetManager() *manager.NodeSetMockManager

Get the mock manager for direct access

func (*NodeSetMockServer) GetPort

func (s *NodeSetMockServer) GetPort() uint16

Get the port the server is listening on

func (*NodeSetMockServer) Start

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

Starts listening for incoming HTTP requests

func (*NodeSetMockServer) Stop

func (s *NodeSetMockServer) Stop() error

Stops the HTTP listener

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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