srvhttp

package
v0.0.0-...-a6f2505 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 10 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
}

func New

func New(port int, service Service) (*Server, error)

func (*Server) HealthCheck

func (s *Server) HealthCheck() error

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup)

type Service

type Service interface {
	Hello(name string) (*models.HelloMessage, error)
}

Directories

Path Synopsis
Package mock_srvhttp is a generated GoMock package.
Package mock_srvhttp is a generated GoMock package.

Jump to

Keyboard shortcuts

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