v2

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

Overview

Code generated by Ice-cream-maker DO NOT EDIT.

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 {
	Cluster_essential `json:",inline"`

	ID      int64            `column:"id"      json:"id,omitempty"`   // pk
	Uuid    string           `column:"uuid"    json:"uuid,omitempty"` // uuid
	Created time.Time        `column:"created" json:"created,omitempty"`
	Updated vanilla.NullTime `column:"updated" json:"updated,omitempty" swaggertype:"string"`
	Deleted vanilla.NullTime `column:"deleted" json:"deleted,omitempty" swaggertype:"string"`
}

func (Cluster) ColumnNames

func (Cluster) ColumnNames() []string

func (*Cluster) Ptrs

func (row *Cluster) Ptrs() []interface{}

func (*Cluster) Scan

func (row *Cluster) Scan(scanner Scanner) error

func (Cluster) Values

func (row Cluster) Values() []interface{}

type Cluster_essential

type Cluster_essential struct {
	Name          string             `column:"name"           json:"name,omitempty"`
	Summary       vanilla.NullString `column:"summary"        json:"summary,omitempty"        swaggertype:"string"`
	PollingOption vanilla.NullObject `column:"polling_option" json:"polling_option,omitempty" swaggertype:"object"`
	PoliingLimit  int                `column:"polling_limit"  json:"polling_limit,omitempty"`
}

func (Cluster_essential) ColumnNames

func (Cluster_essential) ColumnNames() []string

func (Cluster_essential) GetPollingOption

func (opt Cluster_essential) GetPollingOption() PollingHandler

func (*Cluster_essential) Ptrs

func (row *Cluster_essential) Ptrs() []interface{}

func (*Cluster_essential) Scan

func (row *Cluster_essential) Scan(scanner Scanner) error

func (*Cluster_essential) SetPollingOption

func (opt *Cluster_essential) SetPollingOption(handle PollingHandler)

func (Cluster_essential) TableName

func (Cluster_essential) TableName() string

func (Cluster_essential) Values

func (row Cluster_essential) Values() []interface{}

type HttpReq_Cluster_create

type HttpReq_Cluster_create struct {
	Cluster_essential `json:",inline"`

	Uuid string `json:"uuid,omitempty"` // uuid
}

type HttpReq_Cluster_update

type HttpReq_Cluster_update struct {
	Cluster_essential `json:",inline"`
}

type HttpRsp_Cluster

type HttpRsp_Cluster struct {
	Cluster `json:",inline"`
}

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 Scanner

type Scanner interface {
	Scan(dest ...interface{}) error
}

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