storage

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CTFEvent

type CTFEvent struct {
	gorm.Model

	ID          int
	Title       string
	Description string
	Start       string
	Finish      string
	Weight      float64
}

func (*CTFEvent) MarshallCSV

func (ctf *CTFEvent) MarshallCSV() (res []string)

MarshallCSV returns values as a slice

func (*CTFEvent) MarshallJSON

func (ctf *CTFEvent) MarshallJSON() ([]byte, error)

MarshallJSON returns values as a slice

type Db

type Db struct {
	Path          string
	Disabled      bool
	SkipMigration bool
}

func NewDb

func NewDb() *Db

func (*Db) Get

func (db *Db) Get() (*gorm.DB, error)

Jump to

Keyboard shortcuts

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