server

package
v0.0.0-...-2d31ac5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App()

func Grpc

func Grpc() *grpc.Server

func Rest

func Rest() *gin.Engine

Types

type Server

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

func NewServer

func NewServer() *Server

func (*Server) StartGRPC

func (s *Server) StartGRPC(address string) error

StartGRPC run following command to check connection: nc -zv localhost 50051

func (*Server) StartHTTP

func (s *Server) StartHTTP(address string) (err error)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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