mysql

package
v0.0.0-...-f4a3ab8 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *Config) error

func NewSyncLockMapper

func NewSyncLockMapper() synclockimpl.SyncLockMapper

Types

type Config

type Config struct {
	Conn            string `json:"conn" required:"true"`
	ConnMaxLifetime int    `json:"conn_max_life_time"`
	MaxOpenConns    int    `json:"max_open_conns"`
	MaxIdleConns    int    `json:"max_idle_conns"`

	TableName string `json:"table_name"   required:"true"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

type RepoSyncLock

type RepoSyncLock struct {
	Id         int    `json:"-"            gorm:"column:id"`
	Owner      string `json:"-"            gorm:"column:owner"`
	RepoId     string `json:"-"            gorm:"column:repo_id"`
	Status     string `json:"status"       gorm:"column:status"`
	Version    int    `json:"-"            gorm:"column:version"`
	LastCommit string `json:"last_commit"  gorm:"column:last_commit"`
}

func (*RepoSyncLock) TableName

func (r *RepoSyncLock) TableName() string

Jump to

Keyboard shortcuts

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