Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { ApiKey string // contains filtered or unexported fields }
A Project is a collection of users and their events. In the landmarkd process, a Project simply links API keys to the table the project is stored on.
type RedisStore ¶
func NewRedisStore ¶
func NewRedisStore(client sky.Client, uri *url.URL) *RedisStore
Creates a new Redis-backed project store.
func (*RedisStore) FindByApiKey ¶
func (s *RedisStore) FindByApiKey(apiKey string) (*Project, error)
Looks up a project by API key. The store will look for a cached copy first and then check Redis.
func (*RedisStore) HashKey ¶
func (s *RedisStore) HashKey() string
Retrieves the hash key used to lookup projects.
func (*RedisStore) Host ¶
func (s *RedisStore) Host() string
Retrieves the host and port used to connect to Redis.
Click to show internal directories.
Click to hide internal directories.