http

package
v0.0.0-...-bdedfc3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 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 represents a http server that listens on a port.

func New

func New(ctx context.Context) *Server

New instantiates a new instance of Server.

func (*Server) GetContext

func (s *Server) GetContext() context.Context

func (*Server) GetHost

func (s *Server) GetHost() string

func (*Server) GetPort

func (s *Server) GetPort() string

func (*Server) Run

func (s *Server) Run()

Run the server

type ServerInterface

type ServerInterface interface {
	GetHost() string
	GetPort() int
	GetContext() context.Context
	Run()
}

Jump to

Keyboard shortcuts

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