load2logs

package module
v0.0.0-...-bfaae5e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructQuery

func ConstructQuery(datasetId string, tableId, uuid string) string

func HandleLoadEvent

func HandleLoadEvent(ctx context.Context, e event.Event) error

func HandleLogLoadEvent

func HandleLogLoadEvent(ctx context.Context, e event.Event) error

func Load2Bq

func Load2Bq(ctx context.Context, client common.BigQueryClient, srcFileId string, datasetId string, tableId string) error

Types

type EnvConfig

type EnvConfig struct {
	ProjectID string
	DatasetID string
	TableID   string
}

func NewEnvConfig

func NewEnvConfig() (*EnvConfig, error)

type MessagePublishedData

type MessagePublishedData struct {
	Message PubSubMessage
}

type PubSubMessage

type PubSubMessage struct {
	ID              string
	Data            []byte `json:"data"`
	Attributes      map[string]string
	PublishTime     time.Time
	DeliveryAttempt *int
	OrderingKey     string
}

Jump to

Keyboard shortcuts

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