ingestion

package
v0.0.0-...-313d0b5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	System    string    `json:"system"`
	Timestamp time.Time `json:"timestamp"`
	User      User      `json:"user"`
	Changes   Changes   `json:"changes"`
}

type Changes

type Changes struct {
	Entity      string            `json:"entity"`
	Description string            `json:"description"`
	Kind        Kind              `json:"Kind"`
	Values      map[string]string `json:"values"`
}

type InMemoryIngestor

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

func (*InMemoryIngestor) Ingest

func (i *InMemoryIngestor) Ingest(_ context.Context, log *AuditLog) error

type Ingestor

type Ingestor interface {
	Ingest(context.Context, *AuditLog) error
}

type Kind

type Kind int32
const (
	CREATE Kind = 0
	UPDATE Kind = 1
	DELETE Kind = 2
)

func (*Kind) String

func (k *Kind) String() string

type User

type User struct {
	UID      string `json:"uid"`
	Username string `json:"username"`
	IP       string `json:"ip"`
}

Jump to

Keyboard shortcuts

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