Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Host string
	Port string
}

type Server

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

func NewServer

func NewServer(input Input, handler http.Handler) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Stop

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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