types

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 1 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 {
	Sink StanConfig            `yaml:"event_sink"`
	Srcs map[string]StanConfig `yaml:"event_srcs"`
}

Config is config read from file.

type EnvConfig

type EnvConfig struct {
	PodName    string `envconfig:"POD_NAME"`
	ConfigFile string `envconfig:"CONFIG_FILE" default:"config.yml"`
	LogLevel   string `envconfig:"LOG_LEVEL" default:"debug"`
}

EnvConfig is config from environment variables. Include config for NATS Streaming.

type Event

type Event interface {
	EventType() EventType
}

Event is a common interface for Events

type EventErrorType

type EventErrorType string

EventErrorType is the error type that appear in the failure/error event emitted

type EventID

type EventID string

EventID is the ID of events, this is used to track trasaction

type EventType

type EventType string

EventType is a type to represent event operations

type Provider

type Provider cacaosvc.AWMProvider

Provider is the ID of cloud provider

func (Provider) String

func (p Provider) String() string

type QueryOp

type QueryOp string

QueryOp is a type to represent query operations

type StanConfig

type StanConfig struct {
	URL        string `yaml:"url"`
	QueueGroup string `yaml:"queue"`
	Subject    string `yaml:"subject"`
	ClusterID  string `yaml:"cluster_id"`
}

StanConfig is config for NATS Streaming

Jump to

Keyboard shortcuts

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