grpc

package
v0.3.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 14 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(ctx context.Context) error

type ServerOpt

type ServerOpt func(*ServerOpts)

func WithAdmin

func WithAdmin(a admin.AdminService) ServerOpt

func WithBindAddress

func WithBindAddress(bindAddress string) ServerOpt

func WithDispatcher

func WithDispatcher(d dispatcher.Dispatcher) ServerOpt

func WithIngestor

func WithIngestor(i ingestor.Ingestor) 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
}

Jump to

Keyboard shortcuts

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