Documentation
¶
Index ¶
- func ListenAndServeContext(ctx context.Context, listen string, tls *tls.Config, handler http.Handler) error
- func ListenAndServeContextGRPCAndHTTP(ctx context.Context, listen string, tls *tls.Config, httphandler http.Handler, ...) error
- func ListenAndServeGRPCContext(ctx context.Context, listen string, grpcServer *grpc.Server) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeContext ¶ added in v1.23.0
func ListenAndServeContextGRPCAndHTTP ¶ added in v1.23.0
Types ¶
type Options ¶
type Options struct { Listen string `json:"listen,omitempty" description:"listen address"` Locale string `json:"locale,omitempty" description:"default locale for site"` CAFile string `json:"caFile,omitempty" description:"ca file path"` CertFile string `json:"certFile,omitempty" description:"cert file path"` KeyFile string `json:"keyFile,omitempty" description:"key file path"` }
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
func (*Options) IsTLSConfigEnabled ¶
func (*Options) TLSConfigOrNull ¶ added in v1.23.0
Click to show internal directories.
Click to hide internal directories.