Documentation
¶
Index ¶
- type ApiServer
- type ApiServerConfig
- type ApiServerOption
- func WithContext(ctx context.Context) ApiServerOption
- func WithHTTPListenAddress(addr string) ApiServerOption
- func WithHTTPRegistrationFunc(fn HttpRegistrationFunc) ApiServerOption
- func WithJWTVerifier(verifier authn.JWTVerifier) ApiServerOption
- func WithListenAddress(addr string) ApiServerOption
- func WithLogger(log *zap.Logger) ApiServerOption
- func WithPrometheusRegistry(reg *prometheus.Registry) ApiServerOption
- func WithReflection(enabled bool) ApiServerOption
- func WithRegistrationFunc(fn RegistrationFunc) ApiServerOption
- type HttpRegistrationFunc
- type RegistrationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func NewAPIServer(opts ...ApiServerOption) (*ApiServer, error)
type ApiServerConfig ¶ added in v0.4.0
type ApiServerConfig struct {
Ctx context.Context
Log *zap.Logger
ListenAddress string
HTTPListenAddress string
EnableReflection bool
RegistrationFunc RegistrationFunc
HTTPRegistrationFunc HttpRegistrationFunc
JWTVerifier authn.JWTVerifier
PromRegistry *prometheus.Registry
}
type ApiServerOption ¶ added in v0.4.0
type ApiServerOption func(*ApiServerConfig)
func WithContext ¶ added in v0.4.0
func WithContext(ctx context.Context) ApiServerOption
func WithHTTPListenAddress ¶ added in v0.4.0
func WithHTTPListenAddress(addr string) ApiServerOption
func WithHTTPRegistrationFunc ¶ added in v0.4.0
func WithHTTPRegistrationFunc(fn HttpRegistrationFunc) ApiServerOption
func WithJWTVerifier ¶ added in v0.4.0
func WithJWTVerifier(verifier authn.JWTVerifier) ApiServerOption
func WithListenAddress ¶ added in v0.4.0
func WithListenAddress(addr string) ApiServerOption
func WithLogger ¶ added in v0.4.0
func WithLogger(log *zap.Logger) ApiServerOption
func WithPrometheusRegistry ¶ added in v0.4.0
func WithPrometheusRegistry(reg *prometheus.Registry) ApiServerOption
func WithReflection ¶ added in v0.4.0
func WithReflection(enabled bool) ApiServerOption
func WithRegistrationFunc ¶ added in v0.4.0
func WithRegistrationFunc(fn RegistrationFunc) ApiServerOption
type HttpRegistrationFunc ¶ added in v0.3.0
type HttpRegistrationFunc func(gwmux *runtime.ServeMux, conn *grpc.ClientConn) error
type RegistrationFunc ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.