Documentation
¶
Index ¶
- func Serve(ctx context.Context, opt ...Option) error
- type MuxHook
- type Option
- func AddMuxHook(h MuxHook) Option
- func CORSAllowedOrigins(allowedOrigins []string) Option
- func ClientCACert(cert *x509.Certificate) Option
- func ListenAddr(listenAddr string) Option
- func RegisterService(registerServiceServer func(*grpc.Server), ...) Option
- func ServeApiGateway(b bool) Option
- func SetDefaultHandler(h http.Handler) Option
- func SetSwaggerJson(fs http.FileSystem, path string) Option
- func TLSCertKey(certs []*x509.Certificate, key crypto.PrivateKey) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
func AddMuxHook ¶
func CORSAllowedOrigins ¶
func ClientCACert ¶
func ClientCACert(cert *x509.Certificate) Option
func ListenAddr ¶
func RegisterService ¶
func ServeApiGateway ¶
func SetDefaultHandler ¶
func SetSwaggerJson ¶
func SetSwaggerJson(fs http.FileSystem, path string) Option
func TLSCertKey ¶
func TLSCertKey(certs []*x509.Certificate, key crypto.PrivateKey) Option
Click to show internal directories.
Click to hide internal directories.