field

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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