model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObserverInfo

type ObserverInfo struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type RestartPolicy

type RestartPolicy string
const (
	RestartAlways RestartPolicy = "always"
	RestartNever  RestartPolicy = "never"
)

type Schema

type Schema struct {
	Package       string              `gorm:"not null" json:"package"`
	Format        string              `gorm:"not null" json:"format"`
	Binary        string              `gorm:"not null" json:"binary"`
	ConfigFile    string              `gorm:"" json:"config_file"`
	Configs       []*SchemaConfigItem `gorm:"type:json;serializer:json;not null" json:"configs"`
	Args          []string            `gorm:"type:json;serializer:json;not null" json:"args"`
	ListenPort    []uint32            `gorm:"type:json;serializer:json;not null" json:"listen_port"`
	StartupMethod string              `gorm:"not null" json:"startup_method"`
	Version       string              `gorm:"not null" json:"version"`
	Desc          string              `gorm:"not null" json:"desc"`
}

type SchemaConfigItem

type SchemaConfigItem struct {
	Arg  string `json:"arg"`
	File string `json:"file"`
}

Jump to

Keyboard shortcuts

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