declarative

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 8 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 {
	Endpoints []*Endpoint        `json:"endpoints"`
	Sources   []*entities.Source `json:"sources"`
}

Configuration declarative configuration

func (*Configuration) Validate

func (m *Configuration) Validate() error

type Declarative

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

func NewDeclarative

func NewDeclarative(db *db.DB) *Declarative

func (*Declarative) Dump

func (m *Declarative) Dump(ctx context.Context, wid string) (*Configuration, error)

func (*Declarative) Sync

func (m *Declarative) Sync(wid string, cfg Configuration) error

type Endpoint

type Endpoint struct {
	entities.Endpoint `yaml:",inline"`
	Plugins           []*entities.Plugin `json:"plugins"`
}

func (*Endpoint) UnmarshalJSON

func (m *Endpoint) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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