configurations

package
v0.0.0-...-a86d8da Latest Latest
Warning

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

Go to latest
Published: Mar 27, 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 Configuration

type Configuration struct {
	ID        string    `json:"id" firestore:"id"` // "" means unindentified configuration
	UseKey    bool      `json:"use_key" firestore:"use_key"`
	KeyHash   string    `json:"-" firestore:"key_hash"`
	Name      string    `json:"name" firestore:"name"`
	Sink      Sink      `json:"sink" firestore:"sink"`
	CreatedAt time.Time `json:"created_at" firestore:"created_at"`
	UpdatedAt time.Time `json:"updated_at" firestore:"updated_at"`
}

func NewConfiguration

func NewConfiguration(name string, sink Sink, useKey bool) Configuration

func (*Configuration) SetID

func (c *Configuration) SetID(id string)

func (*Configuration) SetKeyHash

func (c *Configuration) SetKeyHash(keyHash string)

func (*Configuration) SetSink

func (c *Configuration) SetSink(sink Sink)

type Sink

type Sink struct {
	Type   string                 `json:"type" firestore:"type"`
	Config map[string]interface{} `json:"config" firestore:"config"`
}

func NewSink

func NewSink(t string, config map[string]interface{}) (Sink, error)

func (Sink) Validate

func (s Sink) Validate() error

Jump to

Keyboard shortcuts

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