tables

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertFields

type AlertFields struct {
	Name      string `json:"name" yaml:"name" hcl:"name"`
	Level     string `json:"level" yaml:"level" hcl:"level"`
	Count     string `json:"count" yaml:"count" hcl:"count"`
	UpdatedAt string `json:"updatedAt" yaml:"updatedAt" hcl:"updatedAt"`
	CreatedAt string `json:"createdAt" yaml:"createdAt" hcl:"createdAt"`
}

AlertFields describe alerts table fields

func (AlertFields) Validate

func (t AlertFields) Validate() error

Validate config

type KVFields

type KVFields struct {
	Key   string `json:"key" yaml:"key" hcl:"key"`
	Value string `json:"value" yaml:"value" hcl:"value"`
}

KVFields describe KV table fields

func (KVFields) Validate

func (t KVFields) Validate() error

Validate config

type TableAlerts

type TableAlerts struct {
	Table  string      `json:"table" yaml:"table" hcl:"table"`
	Fields AlertFields `json:"fields" yaml:"fields" hcl:"fields,block"`
}

TableAlerts is config for core storage alerts table

func (TableAlerts) Validate

func (t TableAlerts) Validate() error

Validate config

type TableKV

type TableKV struct {
	Table  string   `json:"table" yaml:"table" hcl:"table"`
	Fields KVFields `json:"fields" yaml:"fields" hcl:"fields,block"`
}

TableKV is config for core storage kv table

func (TableKV) Validate

func (t TableKV) Validate() error

Validate config

Jump to

Keyboard shortcuts

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