comment

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ObjectInformation configobject.ObjectInformation
	Fields            = []string{
		"id",
		"environment_id",
		"object_type",
		"host_id",
		"service_id",
		"name_checksum",
		"properties_checksum",
		"name",
		"author",
		"text",
		"entry_type",
		"entry_time",
		"is_persistent",
		"is_sticky",
		"expire_time",
		"zone_id",
	}
)

Functions

func NewComment

func NewComment() connection.Row

Types

type Comment

type Comment struct {
	Id                 string  `json:"id"`
	EnvId              string  `json:"environment_id"`
	ObjectType         string  `json:"object_type"`
	HostId             string  `json:"host_id"`
	ServiceId          string  `json:"service_id"`
	NameChecksum       string  `json:"name_checksum"`
	PropertiesChecksum string  `json:"checksum"`
	Name               string  `json:"name"`
	Author             string  `json:"author"`
	Text               string  `json:"text"`
	EntryType          float64 `json:"entry_type"`
	EntryTime          float64 `json:"entry_time"`
	IsPersistent       bool    `json:"is_persistent"`
	IsSticky           bool    `json:"is_sticky"`
	ExpireTime         float64 `json:"expire_time"`
	ZoneId             string  `json:"zone_id"`
}

func (*Comment) GetFinalRows

func (c *Comment) GetFinalRows() ([]connection.Row, error)

func (*Comment) GetId

func (c *Comment) GetId() string

func (*Comment) InsertValues

func (c *Comment) InsertValues() []interface{}

func (*Comment) SetId

func (c *Comment) SetId(id string)

func (*Comment) UpdateValues

func (c *Comment) UpdateValues() []interface{}

Jump to

Keyboard shortcuts

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