db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeCall

func NormalizeCall(call string) string

func TimeToUTCString

func TimeToUTCString(t time.Time) string

func UTCStringToTime

func UTCStringToTime(s string) (time.Time, error)

Types

type Database

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

func Open

func Open(filename string) (*Database, error)

func (*Database) AddRecord

func (d *Database) AddRecord(r Record) error

func (*Database) Close

func (d *Database) Close() error

func (*Database) IndexAdif

func (d *Database) IndexAdif(filename string) (int, error)

func (*Database) Search

func (d *Database) Search(call string) (Results, error)

type Record

type Record struct {
	Call      string
	Date      time.Time
	Frequency float64 // mHz
	Mode      string
}

func AdifToRecord

func AdifToRecord(rec adif.Record) (Record, error)

type Results

type Results []Record

Jump to

Keyboard shortcuts

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