Documentation ¶
Index ¶
Constants ¶
View Source
const ( PortConfigKey = "grpc-port" GracePeriodConfigKey = "grpc-grace-period" )
View Source
const ( HealthUnknown = 0 HealthServing = 1 HealthNotServing = 2 )
View Source
const DefaultGracePeriod = 3 * time.Second
View Source
const DefaultHealthEnabled = true
View Source
const DefaultLoggingInterceptor = true
View Source
const DefaultPort = "50051"
View Source
const DefaultPrometheusInterceptor = true
View Source
const DefaultRequestIdInterceptor = true
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func DisableHealthServer ¶
func DisableHealthServer() Option
func DisableLoggingInterceptor ¶
func DisableLoggingInterceptor() Option
func DisablePrometheusInterceptor ¶
func DisablePrometheusInterceptor() Option
func DisableRequestIdInterceptor ¶
func DisableRequestIdInterceptor() Option
func ShutdownGracePeriod ¶
Click to show internal directories.
Click to hide internal directories.