Documentation ¶
Index ¶
- Variables
- func ClientFilters(req typhon.Request, svc typhon.Service) typhon.Response
- func ClientURLFilter(req typhon.Request, svc typhon.Service) typhon.Response
- func CommonFilters(req typhon.Request, svc typhon.Service) typhon.Response
- func EdgeProxyFilter(endpoint string) typhon.Filter
- func HealthCheckFilter(req typhon.Request, svc typhon.Service) typhon.Response
- func PanicFilter(req typhon.Request, svc typhon.Service) (rsp typhon.Response)
- func PingFilter(req typhon.Request, svc typhon.Service) typhon.Response
- func VersionFilter(req typhon.Request, svc typhon.Service) typhon.Response
Constants ¶
This section is empty.
Variables ¶
var Version = "dev"
Version is also replicated in github.com/lolibrary/lolibrary/foundation and set at compile time.
Functions ¶
func ClientFilters ¶
ClientFilters runs a set of filters to allow sending requests to other services.
func CommonFilters ¶
CommonFilters runs every "common" filter against a service. This is used to globally update filters.
func EdgeProxyFilter ¶
EdgeProxyFilter proxies a request via the edge proxy by inserting the given hostname if missing.
func HealthCheckFilter ¶
HealthCheckFilter checks if the incoming request is GET /healthz and returns a response. TODO: implement proper health checking by polling the service for a non-200.
func PanicFilter ¶
PanicFilter catches any panics that happen while serving.
func PingFilter ¶
PingFilter checks if the incoming request is GET /ping and returns a response.
Types ¶
This section is empty.