Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PollingTypeNames ¶
func PollingTypeNames() []string
PollingTypeNames returns a list of possible string values of PollingType.
Types ¶
type Cluster ¶
type Cluster struct { metav1.DbMeta `json:",inline" xorm:"extends"` //inline dbmeta metav1.UuidMeta `json:",inline" xorm:"extends"` //inline uuidmeta metav1.LabelMeta `json:",inline" xorm:"extends"` //inline labelmeta ClusterProperty `json:",inline" xorm:"extends"` //inline property }
Cluster
type ClusterProperty ¶
type ClusterProperty struct { PollingOption map[string]interface{} `json:"polling_option,omitempty" xorm:"'polling_option' text null comment('polling option')"` PoliingLimit *int16 `json:"polling_limit,omitempty" xorm:"'polling_limit' SMALLINT null comment('polling limit')"` }
Cluster Property
func (ClusterProperty) GetPollingOption ¶
func (opt ClusterProperty) GetPollingOption() PollingHandler
func (*ClusterProperty) SetPollingOption ¶
func (opt *ClusterProperty) SetPollingOption(handle PollingHandler)
type HttpReqCluster_Create ¶
type HttpReqCluster_Create struct { metav1.LabelMeta `json:",inline" xorm:"extends"` //inline labelmeta ClusterProperty `json:",inline" xorm:"extends"` //inline property }
HTTP REQUEST BODY: Create Cluster
type HttpReqCluster_Update ¶
type HttpReqCluster_Update struct { metav1.LabelMeta `json:",inline" xorm:"extends"` //inline labelmeta ClusterProperty `json:",inline" xorm:"extends"` //inline property }
HTTP REQUEST BODY: Update Cluster
type PollingHandler ¶
type PollingType ¶
type PollingType int32
ENUM(
regular smart )
const ( // PollingTypeRegular is a PollingType of type Regular. PollingTypeRegular PollingType = iota // PollingTypeSmart is a PollingType of type Smart. PollingTypeSmart )
func ParsePollingType ¶
func ParsePollingType(name string) (PollingType, error)
ParsePollingType attempts to convert a string to a PollingType.
func (PollingType) String ¶
func (x PollingType) String() string
String implements the Stringer interface.
type RegularPollingOption ¶
type RegularPollingOption struct{}
func (RegularPollingOption) ToMap ¶
func (opt RegularPollingOption) ToMap() map[string]interface{}
type SmartPollingOption ¶
type SmartPollingOption struct { IdleInterval int `json:"idle,omitempty"` //(초) BusyInterval int `json:"busy,omitempty"` //(초) }
func (SmartPollingOption) ToMap ¶
func (opt SmartPollingOption) ToMap() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.