server

package
v0.2.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet defines a wire provider set.

Functions

func NewGRPCServer

func NewGRPCServer(c *Config, uc *service.UserCenterService, 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.UserCenterService, a authn.Authenticator, middlewares []middleware.Middleware) *http.Server

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

func NewMiddlewares

NewMiddlewares return middlewares used by grpc and http server both.

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.

Jump to

Keyboard shortcuts

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