caches

package
v4.3.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClansSummaries

type ClansSummaries struct {
	// Cache points to an instance of gocache.Cache used as the backend cache object.
	Cache *gocache.Cache
}

ClansSummaries represents a cache for the RetrieveClansSummaries operation.

func (*ClansSummaries) GetClansSummaries

func (c *ClansSummaries) GetClansSummaries(db models.DB, gameID string, publicIDs []string) ([]map[string]interface{}, error)

GetClansSummaries is a cache in front of models.GetClansSummaries() with the exact same interface. Like models.GetClansSummaries(), this function may return partial results + CouldNotFindAllClansError. The map[string]interface{} return type represents a summary of one clan with the following keys/values: "membershipCount": int "publicID": string "metadata": map[string]interface{} (user-defined arbitrary JSON object with clan metadata) "name": string "allowApplication": bool "autoJoin": bool TODO(matheuscscp): replace this map with a richer type

Jump to

Keyboard shortcuts

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