model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	FilterType          string    `json:"FilterType,omitempty" validate:"required"`
	Filter              string    `json:"Filter,omitempty" validate:"required"`
	Name                string    `json:"Name,omitempty" validate:"required"`
	EntityName          string    `json:"EntityName,omitempty" validate:"required"`
	ServiceName         string    `json:"ServiceName,omitempty" validate:"required"`
	Description         string    `json:"Description,omitempty"`
	Topic               string    `json:"Topic,omitempty" validate:"required"`
	Generated           bool      `json:"generated,omitempty"`
	Offset              string    `json:"Offset,omitempty" validate:"required"`
	Values              []Value   `json:"Values,omitempty"`
	UserId              string    `json:"-"`
	ServiceId           string    `json:"-"`
	CustomMqttBroker    *string   `json:"CustomMqttBroker,omitempty"`
	CustomMqttUser      *string   `json:"CustomMqttUser,omitempty"`
	CustomMqttPassword  *string   `json:"CustomMqttPassword,omitempty"`
	CustomMqttBaseTopic *string   `json:"CustomMqttBaseTopic,omitempty"`
	Id                  string    `json:"ID"`
	CreatedAt           time.Time `json:"CreatedAt"`
	UpdatedAt           time.Time `json:"UpdatedAt"`
}

type Instances

type Instances []Instance

type InstancesResponse

type InstancesResponse struct {
	Total     int64     `json:"total,omitempty"`
	Count     int       `json:"count,omitempty"`
	Instances Instances `json:"instances,omitempty"`
}

type Value

type Value struct {
	Name string `json:"Name"`
	Path string `json:"Path"`
}

Jump to

Keyboard shortcuts

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