server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func NewGRPCServer

func NewGRPCServer(c *conf.Server, sc *ServiceGrpcContainer, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server.

func NewHTTPServer

func NewHTTPServer(c *conf.Server, cg *conf.Config, service *ServiceContainer, logger log.Logger) *http.Server

NewHTTPServer new an HTTP server.

func NewRegistrar

func NewRegistrar(conf *conf.Registry) registry.Registrar

func NewWhiteListMatcher

func NewWhiteListMatcher() selector.MatchFunc

NewWhiteListMatcher 设置白名单,不需要 token 验证的接口

Types

type ServiceContainer

type ServiceContainer struct {
	AuthService *service.AuthService
}

func NewServiceContainer

func NewServiceContainer(
	auth *service.AuthService,

) *ServiceContainer

type ServiceGrpcContainer

type ServiceGrpcContainer struct {
	AuthService *service.AuthService
	IamService  *saws.IamService
}

func NewServiceGrpcContainer

func NewServiceGrpcContainer(
	auth *service.AuthService,
	iam *saws.IamService,

) *ServiceGrpcContainer

Jump to

Keyboard shortcuts

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