server

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoApiBoot

type GoApiBoot struct {
	GrpcServer *grpc.Server
	WebServer  *http.Server
}

func NewGoApiBoot

func NewGoApiBoot(corsConfig *cors.Cors) *GoApiBoot

func (*GoApiBoot) Start

func (g *GoApiBoot) Start(grpcPort, webPort string)

func (*GoApiBoot) Stop added in v0.1.31

func (g *GoApiBoot) Stop()

type WebProxy added in v0.1.34

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

func GetWebProxy added in v0.1.34

func GetWebProxy(server *grpc.Server) WebProxy

func (WebProxy) ServeHTTP added in v0.1.34

func (w WebProxy) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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