store

package
v0.0.0-...-0355654 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store store

func New

func New(altLogger *shared.AltLogger) (*Store, error)

New store constructor

func (*Store) Clear

func (s *Store) Clear()

Clear rest trials

func (*Store) SetChallenge

func (s *Store) SetChallenge(chOID string)

SetChallenge set challenge

func (*Store) SetResults

func (s *Store) SetResults(UID string, results *[]shared.Result, modtime time.Time)

SetResults set/overwrite results

func (*Store) SetTrial

func (s *Store) SetTrial(UID string, value TrialValue, modtime time.Time)

SetTrial set/update trial (props is the list of properties of trial to update)

func (*Store) TrialsToUpdate

func (s *Store) TrialsToUpdate(liveAPI *client.Client, chOID, token string)

TrialsToUpdate to send

type TrialValue

type TrialValue struct {
	Name        string
	UID         string
	Round       int64
	GUID        string
	GName       string
	Date        time.Time
	DateE       time.Time
	Length      int64
	Wind        string
	Temperature string
	Status      int64

	GroupNameF   bool
	GroupUIDF    bool
	NameF        bool
	DateF        bool
	DateEF       bool
	LengthF      bool
	WindF        bool
	TemperatureF bool
	StatusF      bool
}

TrialValue use to exchange modifications

Jump to

Keyboard shortcuts

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