access

package
v0.0.0-...-750f124 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load[T any](path string, dest *T) (err error)

func LogError

func LogError(cause string, err error)

func Save

func Save[T any](path string, src *T) (err error)

func SaveDataKeys

func SaveDataKeys(path string, dk *DataKeys) (err error)

func SaveGameKey

func SaveGameKey(path string, gk *GameKey) (err error)

func SaveGameKeys

func SaveGameKeys(path string, gks GameKeys) error

Types

type DataKeys

type DataKeys struct {
	Driver   string
	Path     string
	User     string
	Password string
	Host     string
	Port     string
	Database string
	DB       sqlx.DB
}

func LoadDataKeys

func LoadDataKeys(path string) (dk *DataKeys, err error)

func NewDataKeys

func NewDataKeys(driver, path string) *DataKeys

type DataView

type DataView struct {
	Driver   string
	Path     string
	Host     string
	Port     string
	Database string
}

hide the secret parts

func NewAccesView

func NewAccesView(acc *DataKeys) *DataView

type GameKey

type GameKey struct {
	Major int64
	Minor int64
	ID    uuid.UUID
}

func LoadGameKey

func LoadGameKey(path string) (key *GameKey, err error)

func NewGameKeys

func NewGameKeys(major, minor int64) *GameKey

type GameKeys

type GameKeys []*GameKey

func LoadGameKeys

func LoadGameKeys(path string) (gks GameKeys, err error)

Jump to

Keyboard shortcuts

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