apiserver

package
v0.0.0-...-7570391 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, opt ...Option) error

Types

type MuxHook

type MuxHook func(ctx context.Context, mux *http.ServeMux) error

type Option

type Option func(*options)

func AddMuxHook

func AddMuxHook(h MuxHook) Option

func CORSAllowedOrigins

func CORSAllowedOrigins(allowedOrigins []string) Option

func ClientCACert

func ClientCACert(cert *x509.Certificate) Option

func ListenAddr

func ListenAddr(listenAddr string) Option

func RegisterService

func RegisterService(
	registerServiceServer func(*grpc.Server),
	registerProxy func(ctx context.Context, mux *gwruntime.ServeMux, endpoint string, opts []grpc.DialOption) error,
) Option

func ServeApiGateway

func ServeApiGateway(b bool) Option

func SetDefaultHandler

func SetDefaultHandler(h http.Handler) Option

func SetSwaggerJson

func SetSwaggerJson(fs http.FileSystem, path string) Option

func TLSCertKey

func TLSCertKey(certs []*x509.Certificate, key crypto.PrivateKey) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL