field

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldAPI

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

func New

func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, bus busTY.Plugin) *FieldAPI

func (*FieldAPI) Delete

func (f *FieldAPI) Delete(IDs []string) (int64, error)

Delete fields

func (*FieldAPI) Get

func (f *FieldAPI) Get(filters []storageTY.Filter) (*fieldTY.Field, error)

Get returns a field

func (*FieldAPI) GetByID

func (f *FieldAPI) GetByID(id string) (*fieldTY.Field, error)

GetByID returns a field

func (*FieldAPI) GetByIDs

func (f *FieldAPI) GetByIDs(gatewayID, nodeID, sourceID, fieldID string) (*fieldTY.Field, error)

GetByIDs returns a field details by gatewayID, nodeId, sourceID and fieldName of a message

func (*FieldAPI) GetEntityInterface

func (f *FieldAPI) GetEntityInterface() interface{}

func (*FieldAPI) Import

func (f *FieldAPI) Import(data interface{}) error

func (*FieldAPI) List

func (f *FieldAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)

List by filter and pagination

func (*FieldAPI) Save

func (f *FieldAPI) Save(field *fieldTY.Field, retainValue bool) error

Save a field details

Jump to

Keyboard shortcuts

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