Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCorsHandler ¶ added in v1.3.0
func NewCorsHandler(logger *zap.Logger, notify proposal.NotifyHandler, register RegisterEndpoint, options ...Option) http.Handler
NewCorsHandler create a cors http handler
func RegisteWhitelistingValidator ¶
func RegisteWhitelistingValidator(name string, handler proposal.WhitelistingHandler)
RegisteWhitelistingValidator whiteling handler for interceptor options.whitelisting
Types ¶
type Option ¶
type Option func(*option)
Option some options for build a gateway
func WithCredential ¶
func WithCredential(credential credentials.TransportCredentials) Option
WithCredential setup credential for tls
func WithDialTimeout ¶
WithDialTimeout setup the dial timeout
func WithKeepAlive ¶
func WithKeepAlive(keepalive *keepalive.ClientParameters) Option
WithKeepAlive setup keepalive parameters
func WithProjectName ¶ added in v1.3.0
WithProjectName add project name into alert message
func WithPrometheus ¶ added in v1.2.0
WithPrometheus enable prometheus metrics
type RegisterEndpoint ¶ added in v1.3.0
type RegisterEndpoint func(mux *runtime.ServeMux, opts []grpc.DialOption) error
RegisterEndpoint the only entrance for register backend endpoints
Click to show internal directories.
Click to hide internal directories.