apisever

package
v0.0.0-...-e1cdcfb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SwaggerOpenAPIURLPrefix = "/swagger/"
	SwaggerRootPath         = "api/assets/swagger"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// config
	Config *config.Config
	// http server
	HTTPServer *http.Server
	// grpc server
	GRPCServer *grpc.Server
	// grpc gateway server
	GatewayServerMux *runtime.ServeMux
	// cmux
	CMux cmux.CMux
	// Router
	Router *mux.Router
}

func (*Server) AddOpenapiHandler

func (s *Server) AddOpenapiHandler(ctx context.Context)

func (*Server) AddSwaggerHandler

func (s *Server) AddSwaggerHandler()

func (*Server) InstallHubApis

func (s *Server) InstallHubApis(ctx context.Context)

func (*Server) Run

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

Jump to

Keyboard shortcuts

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