backend

package
v0.0.0-...-2482a4e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAbsolutePath

func ToAbsolutePath(relativePath string) (string, error)

Types

type Color

type Color struct {
	R, G, B, A uint8
}

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func MakeHandle

func MakeHandle(save Save, load Load, saveFilePath string) (*Handle, error)

func (*Handle) Close

func (handle *Handle) Close()

func (*Handle) Exec

func (handle *Handle) Exec(query string, args ...interface{}) (sql.Result, error)

func (*Handle) Load

func (handle *Handle) Load(path string) (bool, error)

func (*Handle) QueryOptions

func (handle *Handle) QueryOptions() (Options, error)

func (*Handle) QueryRow

func (handle *Handle) QueryRow(query string, args ...interface{}) (*Row, error)

func (*Handle) QueryRows

func (handle *Handle) QueryRows(query string, args ...interface{}) (*Rows, error)

func (*Handle) Save

func (handle *Handle) Save(path string) (bool, error)

type Load

type Load func(handle *Handle) error

type Object

type Object struct {
	Id int64
}

type Options

type Options struct {
	WindowTitle     string
	WindowWidth     int64
	WindowHeight    int64
	DefaultFont     string
	DefaultFontSize int64
	FPS             int64
	ShowFPS         bool
}

type Position

type Position struct {
	X, Y int32
}

func (Position) Equals

func (position Position) Equals(other Position) bool

type Row

type Row struct {
	// contains filtered or unexported fields
}

func (*Row) Scan

func (row *Row) Scan(args ...interface{}) error

type Rows

type Rows struct {
	// contains filtered or unexported fields
}

func (*Rows) Close

func (rows *Rows) Close()

func (*Rows) Next

func (rows *Rows) Next() bool

func (*Rows) Scan

func (rows *Rows) Scan(args ...interface{}) error

type Save

type Save func(handle *Handle) error

Jump to

Keyboard shortcuts

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