server

package
v0.2.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 32 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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