data

package
v0.0.0-...-40a4eb0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDGetName

func IDGetName(uuid uuid.UUID) (string, error)

IDGetName is copied from sis

func Open

func Open(source string) error

Open database

func QQGetID

func QQGetID(qq int64) (uuid uuid.UUID, err error)

QQGetID get id using qq

func QQGetName

func QQGetName(qq int64) (string, error)

QQGetName get name using QQ

Types

type AugurData

type AugurData struct {
	Places     []Place  `json:"Places"`
	GoodEvents []Event  `json:"GoodEvents"`
	BadEvents  []Event  `json:"BadEvents"`
	ResetCmds  []string `json:"ResetCmds"`
}

func Load

func Load(filename string) (*AugurData, error)

type Event

type Event struct {
	Name string `json:"Name"`
	Cmd  string `json:"Cmd"`
}

Event includes events and Cmd

type Place

type Place struct {
	Name       string  `json:"Name"`
	GoodEvents []Event `json:"GoodEvents"`
	BadEvents  []Event `json:"BadEvents"`
}

Jump to

Keyboard shortcuts

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