grpc

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "grpc"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Network             string        `yaml:"network" default:"tcp"`
	Bind                string        `yaml:"bind" default:"0.0.0.0"`
	Port                string        `yaml:"port" default:"6066"`
	Timeout             time.Duration `yaml:"timeout" default:"20s"`
	MaintenanceInterval time.Duration `yaml:"maintenanceInterval,omitempty" default:"30s"`
}

type Source

type Source struct {
	pb.UnimplementedLogServiceServer
	// contains filtered or unexported fields
}

func (*Source) Category

func (s *Source) Category() api.Category

func (*Source) Commit

func (s *Source) Commit(events []api.Event)

func (*Source) Config

func (s *Source) Config() interface{}

func (*Source) Init

func (s *Source) Init(context api.Context) error

func (*Source) LogStream

func (s *Source) LogStream(ls pb.LogService_LogStreamServer) error

func (*Source) ProductLoop

func (s *Source) ProductLoop(productFunc api.ProductFunc)

func (*Source) Start

func (s *Source) Start() error

func (*Source) Stop

func (s *Source) Stop()

func (*Source) String

func (s *Source) String() string

func (*Source) Type

func (s *Source) Type() api.Type

Jump to

Keyboard shortcuts

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