helper

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Limit       int64
	Offset      int64
	Kind        resource2.MeasureKind
	Class       resource2.Class
	OrgID       int64
	ParentID    *int64
	RoleID      *int64
	UserID      *int64
	GroupID     *int64
	DeviceID    int64
	MeasureID   int64
	EquipmentID int64
	StateID     int64

	Status *int64

	Name          string
	Keyword       string
	DefaultEffect resource2.Effect

	OrderBy string
}

type OptionFN

type OptionFN func(*Option)

func Class

func Class(class resource2.Class) OptionFN

func DefaultEffect

func DefaultEffect(effect resource2.Effect) OptionFN

func Device

func Device(deviceID int64) OptionFN

func Equipment

func Equipment(equipmentID int64) OptionFN

func Group

func Group(groupID int64) OptionFN

func Keyword

func Keyword(keyword string) OptionFN

func Kind

func Kind(kind resource2.MeasureKind) OptionFN

func Limit

func Limit(limit int64) OptionFN

func Measure

func Measure(measureID int64) OptionFN

func Name

func Name(name string) OptionFN

func Offset

func Offset(offset int64) OptionFN

func OrderBy

func OrderBy(orderBy string) OptionFN

func Organization

func Organization(orgID int64) OptionFN

func Page

func Page(page, pageSize int64) OptionFN

func Parent

func Parent(parentID int64) OptionFN

func Role

func Role(roleID int64) OptionFN

func State

func State(stateID int64) OptionFN

func Status

func Status(status int64) OptionFN

func User

func User(userID int64) OptionFN

Jump to

Keyboard shortcuts

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