Versions in this module Expand all Collapse all v0 v0.1.1 Mar 27, 2022 v0.0.1 Mar 20, 2022 Changes in this version + func NewZipkinClientOption(name, addr string, logger *zap.Logger) (grpc.DialOption, error) + func NewZipkinServerOption(name, addr string, logger *zap.Logger) (grpc.ServerOption, error) + func ReadDataFromBody(w http.ResponseWriter, req *http.Request) (map[string]interface{}, error) + type ClientRegisterFunc func(context.Context, *runtime.ServeMux, string, []grpc.DialOption) (err error) + type Gateway interface + Handle func(method, pattern string, handler runtime.HandlerFunc) Gateway + Options func() *Options + Start func() + Transport func(serverName string, registerFunc ...ClientRegisterFunc) Gateway + Use func(middlewares ...Middleware) Gateway + func New(opts ...Option) Gateway + type Middleware func(http.Handler) http.Handler + type Option func(*Options) + func AllowHeaders(headers ...string) Option + func AllowMethods(methods ...string) Option + func AllowOrigins(origins ...string) Option + func Listen(addr string) Option + func Logger(logger *zap.Logger) Option + func Name(name string) Option + func Registry(registry registry.Registry) Option + func TLS(certFile, keyFile string) Option + func TTL(ttl int) Option + func Trans(endpoints ...*config.EndPoint) Option + func Version(version string) Option + func WithConfig(conf *config.GatewayConfig) Option + type Options struct + CORS *config.CORSConfig + Logger *zap.Logger + Registry registry.Registry + ServiceDesc *runtime.ServiceDesc + Transports []*config.EndPoint