versions

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountTotal added in v1.6.0

func CountTotal(filter *query.VersionFilter) *int

Types

type CountResult added in v1.6.0

type CountResult struct {
	Timestamp string
	Count     int
}

func CountByDay added in v1.6.0

func CountByDay(filter *query.VersionFilter) []CountResult

type Version

type Version struct {
	ID          int64  `json:"id"`
	Application string `json:"application"`
	Environment string `json:"environment"`
	Location    string `json:"location"`
	Timestamp   string `json:"timestamp"`
	Version     string `json:"version"`
}

func GetAll

func GetAll(opts ...query.QueryOpts) []Version

func GetAllLast added in v1.6.0

func GetAllLast(days *int) []Version

func GetLast added in v1.4.0

func GetLast(location, environment, application string) *Version

func (Version) Save

func (v Version) Save() int64

type VersionOrderBy

type VersionOrderBy struct {
	Application query.Sort
	Environment query.Sort
	Location    query.Sort
	Timestamp   query.Sort
}

func (VersionOrderBy) GetParts

func (vop VersionOrderBy) GetParts() query.QueryParts

Jump to

Keyboard shortcuts

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