Documentation ¶
Index ¶
- func Run(ctx context.Context, opts ...Option)
- type Config
- type Option
- func WithCanonicalHost(hostname string) Option
- func WithCertificate(certFilename, keyFilename string) Option
- func WithHTTPListenPort(port int) Option
- func WithHTTPServer(h http.Handler) Option
- func WithLogger(l *zap.Logger) Option
- func WithMetricsListenPort(port int) Option
- func WithRPCListenPort(port int) Option
- func WithRPCServer(fn RPCRegistration) Option
- func WithServiceName(serviceName string) Option
- func WithZipkinTracer() Option
- type RPCRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Insecure bool Compress bool // if true, add compression handling to messages UseZipkin bool // if true, add zipkin tracing CertFilename string KeyFilename string HTTPListenPort int RPCListenPort int MetricsListenPort int Handler http.Handler Hostname string // if present, enforce canonical hostnames RPCRegister RPCRegistration // contains filtered or unexported fields }
type Option ¶
func WithCanonicalHost ¶
func WithCertificate ¶
func WithHTTPListenPort ¶
func WithHTTPServer ¶
func WithLogger ¶
func WithMetricsListenPort ¶
func WithRPCListenPort ¶
func WithRPCServer ¶
func WithRPCServer(fn RPCRegistration) Option
func WithServiceName ¶
func WithZipkinTracer ¶
func WithZipkinTracer() Option
type RPCRegistration ¶
Click to show internal directories.
Click to hide internal directories.