server

package
v0.0.0-...-1c411e6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 7 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 NewServer

func NewServer(cfg *config.Config, port string, handler http.Handler) *Server

func (*Server) RunGRPC

func (s *Server) RunGRPC(lis net.Listener) error

func (*Server) RunHTTP

func (s *Server) RunHTTP() error

func (*Server) StopGRPC

func (s *Server) StopGRPC()

func (*Server) StopHTTP

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

Jump to

Keyboard shortcuts

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