server

package
v0.0.0-...-4da0261 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a test server.

func New

func New(logger *slog.Logger, port string) *Server

New creates a new server.

func (*Server) Start

func (srv *Server) Start(ctx context.Context) error

Start starts the server.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the server.

Jump to

Keyboard shortcuts

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