makoto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string = env.GetEnvOrDefault("MAKOTO_PATH", configdir.LocalConfig("makoto"))

Functions

func Append

func Append(kpc *kpc.KPC) error

func Close

func Close()

func Update

func Update(filepath string)

Types

type KPC_DB

type KPC_DB struct {
	DB      *storm.DB
	DB_Open bool
}

type KPC_DB_Entry

type KPC_DB_Entry struct {
	Name string  `storm:"id"` // primary key with auto increment
	KPC  kpc.KPC // name is combined with version
}

func All

func All() []KPC_DB_Entry

func Compare

func Compare(name, compair string) *KPC_DB_Entry

func Get

func Get(name, version string) *KPC_DB_Entry

func Latest

func Latest(name string) *KPC_DB_Entry

type Makoto

type Makoto struct {
	ConfigPath string `toml:"configpath"`
	ConfigFile string `toml:"config"`
	KPC_DB     string `toml:"db"`
}

func Config

func Config(config_path string) *Makoto

func Init

func Init() *Makoto

func (*Makoto) DBInit

func (makoto *Makoto) DBInit() *KPC_DB

func (*Makoto) Store

func (makoto *Makoto) Store()

Jump to

Keyboard shortcuts

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