server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet defines a wire provider set.

Functions

func NewGRPCServer

func NewGRPCServer(c *Config, gw *service.GatewayService, middlewares []middleware.Middleware) *grpc.Server

NewGRPCServer creates a new gRPC server with middleware options, and registers the UserCenterService.

func NewHTTPServer

func NewHTTPServer(c *Config, gw *service.GatewayService, middlewares []middleware.Middleware) *http.Server

NewHTTPServer creates a new HTTP server with middleware and handler chain.

func NewServers

func NewServers(hs *http.Server, gs *grpc.Server) []transport.Server

NewServers is a wire provider function that creates and returns a slice of transport servers.

func NewWhiteListMatcher

func NewWhiteListMatcher() selector.MatchFunc

Types

type Config

Config represents the configuration options for a service, including HTTP, GRPC, and TLS settings.

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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