package
0.27.274
Repository: https://github.com/effective-security/porto.git
Documentation: pkg.go.dev

# Packages

Package credentials implements gRPC credential interface with etcd specific logic.
No description provided by the author

# Functions

Start returns running Server.
WithMiddleware option to provide HTTP handler.
WithStreamServerInterceptor option to provide RPC StreamServerInterceptor.
WithUnaryServerInterceptor option to provide RPC UnaryServerInterceptor.

# Variables

WarnUnaryRequestLatency is the threshold for logging a warning for a slow unary request.

# Structs

Config contains the configuration of the server.
CORS contains configuration for CORS.
KeepAliveCfg settings.
RateLimit contains configuration for Rate Limititing.
Server contains a running server and its listeners.
SwaggerCfg specifies the configuration for Swagger.
TLSInfo contains configuration info for the TLS.

# Interfaces

GRPCRegistrator provides interface to register gRPC service.
GServer is the interface for gRPC server.
Option is an option that can be passed to New().
RouteRegistrator provides interface to register HTTP route.
Service provides a way for subservices to be registered so they get added to the http API.
StartSubcriber provides.

# Type aliases

Middleware defines middleware handler.
ServiceFactory is interface to create Services.