configuration

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Signal   *signalHandler
	EventHub *system.SystemEventHub
	Mod      Mod
	Project  Project
	// contains filtered or unexported fields
}

func Initialize

func Initialize(session string, timestamp int64, kargs map[string]utils.Argument, mod *Mod, project *Project, snapshot *Snapshot) Configuration

func Instance

func Instance() Configuration

func (Configuration) Admin

func (c Configuration) Admin() string

func (Configuration) Dev

func (c Configuration) Dev() bool

func (Configuration) Format

func (c Configuration) Format() format.DataFormat

func (Configuration) Secret

func (c Configuration) Secret() []byte

func (Configuration) SessionId

func (c Configuration) SessionId() string

func (Configuration) Snapshot

func (c Configuration) Snapshot() Snapshot

func (Configuration) Timestamp

func (c Configuration) Timestamp() int64

type Dependency

type Dependency struct {
	Module   string
	Version  string
	Replace  string
	Indirect bool
}

type Mod

type Mod struct {
	Module       string
	Version      string
	Dependencies map[string]Dependency
}

func DecodeMod

func DecodeMod(file *os.File) *Mod

type Package

type Package struct {
	Version string  `yaml:"version"`
	Project Project `yaml:"project"`
}

type Project

type Project struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

type Release

type Release struct {
	TagName string `json:"tag_name"`
}

func OriginLastVersion

func OriginLastVersion(owner, repo string) *Release

type Snapshot

type Snapshot struct {
	Enable bool
	Time   int64
	Limit  int
}

Jump to

Keyboard shortcuts

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