Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2022 Changes in this version + var DefaultProviderSet = wire.NewSet(wire.Value(ReqDecode), wire.Value(ResEncoder), wire.Value(ErrEncoder), ...) + var ErrEncoder http.EncodeErrorFunc = http.DefaultErrorEncoder + var ReqDecode http.DecodeRequestFunc = http.DefaultRequestDecoder + var ResEncoder http.EncodeResponseFunc = http.DefaultResponseEncoder + func AuthzGuardian(srv authz.Service, requirement authz.RequirementList, ...) http.Handler + func ClientIP(ctx context.Context) string + func ClientUserAgent(ctx context.Context) string + func HandleBlobs(basePath string, cfg blob.Config, srv *khttp.Server, factory blob.Factory) + func HandlerWrap(resEncoder khttp.EncodeResponseFunc, handler HandlerFunc[TRet]) http.HandlerFunc + func Host(ctx context.Context) string + func IsAjax(ctx context.Context) bool + func IsSecure(ctx context.Context) bool + func IsWebsocket(ctx context.Context) bool + func MiddlewareConvert(errEncoder khttp.EncodeErrorFunc, m ...middleware.Middleware) func(handler http.Handler) http.Handler + func NewRegistrar(services *conf.Services) (registry.Registrar, error) + func NewWebMultiTenancyOption(opt *conf.AppConfig) *shttp.WebMultiTenancyOption + func PatchGrpcOpts(l log.Logger, opts []grpc.ServerOption, name string, services *conf.Services) []grpc.ServerOption + func PatchHttpOpts(l log.Logger, opts []khttp.ServerOption, name string, services *conf.Services, ...) []khttp.ServerOption + func Recovery() middleware.Middleware + func ResolveHttpRequest(ctx context.Context) (*http.Request, bool) + func Saas(hmtOpt *shttp.WebMultiTenancyOption, ts saas.TenantStore, ...) middleware.Middleware + type GrpcServiceRegister interface + Register func(server *grpc.Server, middleware ...middleware.Middleware) + func ChainGrpcServiceRegister(r ...GrpcServiceRegister) GrpcServiceRegister + type GrpcServiceRegisterFunc func(server *grpc.Server, middleware ...middleware.Middleware) + func (f GrpcServiceRegisterFunc) Register(server *grpc.Server, middleware ...middleware.Middleware) + type Handler interface + ServeHTTP func(w http.ResponseWriter, r *http.Request) (TRet, error) + type HandlerFunc func(w http.ResponseWriter, r *http.Request) (TRet, error) + type HttpServiceRegister interface + Register func(server *khttp.Server, middleware ...middleware.Middleware) + func ChainHttpServiceRegister(r ...HttpServiceRegister) HttpServiceRegister + type HttpServiceRegisterFunc func(server *khttp.Server, middleware ...middleware.Middleware) + func (f HttpServiceRegisterFunc) Register(server *khttp.Server, middleware ...middleware.Middleware)