model

package
v0.0.0-...-35e849c Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderInfo

type LeaderInfo struct {
	ID                   uint64     `gorm:"column:id;type:bigint unsigned AUTO_INCREMENT;PRIMARY_KEY"`
	LeaderIdentity       string     `gorm:"column:leader_identity;type:varchar(128); NOT NULL DEFAULT ''"`
	Transitions          uint64     `gorm:"column:transitions;type:bigint unsigned;NOT NULL DEFAULT 0"`
	LeaseDurationSeconds uint64     `gorm:"column:lease_duration_seconds;type:bigint unsigned;NOT NULL DEFAULT 0"`
	CreateAt             *time.Time `gorm:"column:created_at;type:timestamp;NOT NULL DEFAULT now()"`
	LastAcquireAt        *time.Time `gorm:"column:last_acquire_at;type:timestamp;NOT NULL DEFAULT now()"`
	LastRenewAt          *time.Time `gorm:"column:last_renew_at;type:timestamp;NOT NULL DEFAULT now()"`
}

func NewLeaderInfo

func NewLeaderInfo() *LeaderInfo

func (LeaderInfo) TableName

func (LeaderInfo) TableName() string

Jump to

Keyboard shortcuts

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