status

package
v0.0.0-...-5129a00 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Languages

func Languages(dbCfg db.Config) ([]models.Language, error)

Languages returns list of languages available in the database

func Platforms

func Platforms(dbCfg db.Config, params PlatformsParameters) ([]models.Platform, error)

Platforms returtns list of platforms available in the database

func Regions

func Regions(dbCfg db.Config) ([]models.Region, error)

Regions returns list of regions available in the database

Types

type FilterIndexing

type FilterIndexing string

FilterIndexing specifies whether info should return all platforms, or platforms with/without index

const (
	// AllPlatforms instructs that all platforms in the database, regardles of their index state, should be returned
	AllPlatforms FilterIndexing = "AllPlatforms"
	// WithIndex instructs that only platforms that have been indexed should be returned
	WithIndex FilterIndexing = "WithIndex"
	// WithoutIndex instructs that only platforms that have not been indexed should be returned
	WithoutIndex FilterIndexing = "WithoutIndex"
)

type PlatformsParameters

type PlatformsParameters struct {
	UID     string
	Indexed FilterIndexing
}

PlatformsParameters is used for specifying filters applied to platforms results

Jump to

Keyboard shortcuts

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