service

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EventIngester eventingester.Config `yaml:"eventIngester"`
	Coordinator   coordinator.Config   `yaml:"coordinator"`
}

func (*Config) Validate

func (c *Config) Validate() error

type GRPCService

type GRPCService interface {
	Start(ctx context.Context, server *grpc.Server) error
	Stop(ctx context.Context) error
}

GRPCService is a service that implements a single gRPC service as defined in our Protobuf definition.

func CreateGRPCServices

func CreateGRPCServices(ctx context.Context, log logrus.FieldLogger, cfg *Config, clockDrift *time.Duration, p *persistence.Client, c store.Cache, g geoip.Provider) ([]GRPCService, error)

type RawMessage

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

func (*RawMessage) Unmarshal

func (r *RawMessage) Unmarshal(v interface{}) error

func (*RawMessage) UnmarshalYAML

func (r *RawMessage) UnmarshalYAML(unmarshal func(interface{}) error) error

type Type

type Type string
const (
	ServiceTypeUnknown       Type = "unknown"
	ServiceTypeEventIngester Type = eventingester.ServiceType
	ServiceTypeCoordinator   Type = coordinator.ServiceType
)

Jump to

Keyboard shortcuts

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