integrations

package
v0.0.0-...-a79a6e6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer()

func StreamLogToGRPC

func StreamLogToGRPC(Log string, grpcConfigs []GRPCLogConfig) error

func StreamLogToKafka

func StreamLogToKafka(Log string, kafkaConfigs []KafkaLogConfig) error

Types

type Config

type Config struct {
	Integrations
}

func ReadLogConfig

func ReadLogConfig() (Config, error)

type GRPCLogConfig

type GRPCLogConfig struct {
	Host string
	Port string
}

type Integrations

type Integrations struct {
	Rpc   []GRPCLogConfig
	Kafka []KafkaLogConfig
}

func (Integrations) StreamLogToAll

func (intg Integrations) StreamLogToAll(Log string) error

type KafkaLogConfig

type KafkaLogConfig struct {
	Broker string
	Topic  string
	Port   string
}

type Log

type Log struct {
	DataDomainID     string    `json:"DataDomainID"`
	Database         string    `json:"Database"`
	Operation        string    `json:"Operation"`
	OperationDetails string    `json:"OperationDetails"`
	Timestamp        time.Time `json:"Timestamp"`
	User             string    `json:"User"`
}

func ParseLog

func ParseLog(logdata string) Log

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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