http

package
v0.0.0-...-34e14d4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Init(r *router.Router)
}

type RequestParser

type RequestParser struct{}

func NewRequestParser

func NewRequestParser() *RequestParser

func (*RequestParser) ParseInt64FromBytes

func (rp *RequestParser) ParseInt64FromBytes(bytes []byte) (int64, error)

func (*RequestParser) ParseInt64FromInterface

func (rp *RequestParser) ParseInt64FromInterface(value interface{}) (int64, error)

type Server

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

func NewServer

func NewServer(handler Handler) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, g *errgroup.Group, port string)

Directories

Path Synopsis
mocks
Package mock_handler is a generated GoMock package.
Package mock_handler is a generated GoMock package.
Package mock_http is a generated GoMock package.
Package mock_http is a generated GoMock package.

Jump to

Keyboard shortcuts

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