model

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFormatToml       ConfigFormat = "toml"
	ConfigFormatYaml                    = "yaml"
	ConfigFormatJson                    = "json"
	ConfigFormatXml                     = "xml"
	ConfigFormatProperties              = "properties"
	ConfigFormatIni                     = "ini"
)
View Source
const (
	ConfigLanguageGo   ConfigLanguage = "go"
	ConfigLanguageJava                = "java"
	ConfigLanguagePHP                 = "php"
	ConfigLanguageLua                 = "lua"
)
View Source
const (
	ItemStatusPub    ItemStatus = 1
	ItemStatusNew               = 2
	ItemStatusUpdate            = 3
	ItemStatusDel               = 4
)
View Source
const (
	ItemLogStatusNew      ItemLogStatus = 1
	ItemLogStatusUpdate                 = 2
	ItemLogStatusDel                    = 3
	ItemLogStatusPublish                = 4
	ItemLogStatusRollback               = 5
)

Variables

This section is empty.

Functions

func Init

func Init(configPath string) error

func InitDefault

func InitDefault() error

Types

type ConfigFormat

type ConfigFormat string

ConfigFormat 配置文件类型

type ConfigLanguage

type ConfigLanguage string

ConfigLanguage 配置文件语言客户端

type GoDepProject

type GoDepProject struct {
	Name     string   `toml:"name"`
	Branch   string   `toml:"branch"`
	Revision string   `toml:"revision"`
	Version  string   `toml:"version"`
	Packages []string `toml:"packages"`
}

type GomodProject

type GomodProject struct {
	Name        string
	Version     string
	ModType     string
	Time        string
	Revision    string
	OriginValue string
	UpdateTime  int64
}

type ItemLogStatus

type ItemLogStatus int

ItemLogStatus 配置项状态 1 新增 2 更新 3 删除 4 发布 5 回滚

type ItemStatus

type ItemStatus int

ItemStatus 配置项状态 1 已发布 2 新增 3 更新 4 删除

type PkgDep

type PkgDep struct {
	Projects []GoDepProject `toml:"projects"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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