cluster

package
v1.3.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Id       int64     `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
	UUID     string    `gorm:"type:varchar(36);not null;column:uuid;uniqueIndex:uuid;comment:UUID;"`
	Name     string    `gorm:"type:varchar(100);not null;column:name;comment:name"`
	Cluster  string    `gorm:"type:varchar(36);not null;column:cluster;comment:cluster id"`
	Resume   string    `gorm:"type:varchar(255);not null;column:resume;comment:resume"`
	Creator  string    `gorm:"type:varchar(36);not null;column:creator;comment:creator" aovalue:"creator"`
	Updater  string    `gorm:"type:varchar(36);not null;column:updater;comment:updater" aovalue:"updater"`
	CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
	UpdateAt time.Time `` /* 139-byte string literal not displayed */
}

func (*Cluster) IdValue

func (c *Cluster) IdValue() int64

func (*Cluster) TableName

func (c *Cluster) TableName() string

type IClusterNodeAddressStore

type IClusterNodeAddressStore interface {
	store.IBaseStore[NodeAddr]
}

type IClusterNodeStore

type IClusterNodeStore interface {
	store.IBaseStore[Node]
}

type IClusterStore

type IClusterStore interface {
	store.IBaseStore[Cluster]
	Count(ctx context.Context) (map[string]int, error)
}

type Node

type Node struct {
	Id         int64     `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
	UUID       string    `gorm:"size:36;not null;column:uuid;uniqueIndex:uuid;comment:UUID;"`
	Name       string    `gorm:"size:100;not null;column:name;comment:name"`
	Cluster    string    `gorm:"column:cluster;type:varchar(36);NOT NULL;comment:cluster id;"`
	UpdateTime time.Time `` /* 139-byte string literal not displayed */
}

func (*Node) IdValue

func (c *Node) IdValue() int64

func (*Node) TableName

func (c *Node) TableName() string

type NodeAddr

type NodeAddr struct {
	Id         int64     `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
	Cluster    string    `gorm:"column:cluster;type:varchar(36);NOT NULL;comment:cluster id;"`
	Node       string    `gorm:"column:node;type:varchar(36);NOT NULL;comment:node id;"`
	Type       string    `gorm:"size:32;not null;column:type;comment:type;uniqueIndex:node_type_addr;"`
	Addr       string    `gorm:"size:255;not null;column:addr;comment:addr;uniqueIndex:node_type_addr;"`
	UpdateTime time.Time `` /* 139-byte string literal not displayed */
}

func (*NodeAddr) IdValue

func (c *NodeAddr) IdValue() int64

func (*NodeAddr) TableName

func (c *NodeAddr) TableName() string

Jump to

Keyboard shortcuts

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