v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 4 Imported by: 0

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

func (Cluster) TableName

func (Cluster) TableName() string

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 PollingHandler interface {
	Interval(_default time.Duration, service_count int) time.Duration
	ToMap() map[string]interface{}
}

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) Interval

func (opt RegularPollingOption) Interval(_default time.Duration, service_count int) time.Duration

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) Interval

func (opt SmartPollingOption) Interval(_default time.Duration, service_count int) time.Duration

func (SmartPollingOption) ToMap

func (opt SmartPollingOption) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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