config

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	ID                   string
	Cache                *scache.Config
	*datastore.Reference `json:",omitempty" yaml:",inline"`
	L2                   *datastore.Reference `json:",omitempty" yaml:",omitempty"`
	Storable             string
	Fields               []*storable.Field
	Disabled             bool `json:",omitempty" yaml:",omitempty"`
}

Datastore represents datastore

func (*Datastore) FieldsDescriptor

func (d *Datastore) FieldsDescriptor(fields []*storable.Field) error

FieldsDescriptor sets field descriptors

func (*Datastore) Init

func (d *Datastore) Init()

Init initialises datastore

func (*Datastore) Validate

func (d *Datastore) Validate() error

Validate checks if datastore settings are valid

type DatastoreList

type DatastoreList struct {
	Connections []*datastore.Connection
	Datastores  []*Datastore
}

DatastoreList represents datastore list

func (*DatastoreList) Init

func (d *DatastoreList) Init()

Init initialises list

func (*DatastoreList) Validate

func (d *DatastoreList) Validate() error

Validate checks if datastore list is valid

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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