status_store

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.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 Clock

type Clock func() time.Time

type IndicatorStatus

type IndicatorStatus struct {
	DocumentUID   string
	IndicatorName string
	Status        *string
	UpdatedAt     time.Time
}

type Store

type Store struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(clock Clock) *Store

func (*Store) FillStatuses added in v0.7.15

func (s *Store) FillStatuses(doc *v1.IndicatorDocument)

func (*Store) StatusFor

func (s *Store) StatusFor(documentUID string, indicatorName string) (IndicatorStatus, error)

func (*Store) UpdateStatus

func (s *Store) UpdateStatus(request UpdateRequest)

type UpdateRequest

type UpdateRequest struct {
	Status        *string
	IndicatorName string
	DocumentUID   string
}

Jump to

Keyboard shortcuts

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