grpc

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

func NewServer

func NewServer(fs ...ServerOpt) (*Server, error)

func (*Server) Start

func (s *Server) Start() (func() error, error)

type ServerOpt

type ServerOpt func(*ServerOpts)

func WithAdmin

func WithAdmin(a admin.AdminService) ServerOpt

func WithAlerter added in v0.20.0

func WithAlerter(a errors.Alerter) ServerOpt

func WithAnalytics added in v0.20.1

func WithAnalytics(a analytics.Analytics) ServerOpt

func WithBindAddress

func WithBindAddress(bindAddress string) ServerOpt

func WithConfig added in v0.7.0

func WithConfig(config *server.ServerConfig) ServerOpt

func WithDispatcher

func WithDispatcher(d dispatcher.Dispatcher) ServerOpt

func WithIngestor

func WithIngestor(i ingestor.Ingestor) ServerOpt

func WithInsecure

func WithInsecure() ServerOpt

func WithLogger

func WithLogger(l *zerolog.Logger) ServerOpt

func WithPort

func WithPort(port int) ServerOpt

func WithTLSConfig

func WithTLSConfig(tls *tls.Config) ServerOpt

type ServerOpts

type ServerOpts struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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