Documentation
¶
Overview ¶
Package api implements the API server.
Index ¶
- type APIServer
- type APIServerConfig
- type APIServerOption
- func WithContext(ctx context.Context) APIServerOption
- func WithListener(listener net.Listener) APIServerOption
- func WithLogger(logger *zap.Logger) APIServerOption
- func WithPrometheusRegistry(reg *prometheus.Registry) APIServerOption
- func WithReflection(enabled bool) APIServerOption
- func WithRegistrationFunc(registrationFunc RegistrationFunc) APIServerOption
- type RegistrationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶ added in v0.5.1
type APIServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func NewAPIServer(opts ...APIServerOption) (*APIServer, error)
type APIServerConfig ¶ added in v0.5.1
type APIServerConfig struct {
Ctx context.Context
Logger *zap.Logger
PromRegistry *prometheus.Registry
RegistrationFunc RegistrationFunc
Listener net.Listener
EnableReflection bool
}
type APIServerOption ¶ added in v0.5.1
type APIServerOption func(*APIServerConfig)
func WithContext ¶ added in v0.4.0
func WithContext(ctx context.Context) APIServerOption
func WithListener ¶ added in v1.0.0
func WithListener(listener net.Listener) APIServerOption
func WithLogger ¶ added in v0.4.0
func WithLogger(logger *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(registrationFunc RegistrationFunc) APIServerOption
type RegistrationFunc ¶ added in v0.1.1
Directories
¶
| Path | Synopsis |
|---|---|
|
Package message implements the replication API service.
|
Package message implements the replication API service. |
|
Package metadata implements the metadata API service.
|
Package metadata implements the metadata API service. |
|
Package payer implements the Payer API service.
|
Package payer implements the Payer API service. |
Click to show internal directories.
Click to hide internal directories.