postgrescache

package
v0.0.0-...-0a9f55e Latest Latest
Warning

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

Go to latest
Published: May 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache postgres

func New

func New(cfg PostgresConfig) (*Cache, error)

New creates new postgres.Cache

func (*Cache) Accounts

func (c *Cache) Accounts() cache.AccountsService

func (*Cache) Apps

func (c *Cache) Apps() cache.AppsService

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Config

func (c *Cache) Config() cache.ConfigService

func (*Cache) Domains

func (c *Cache) Domains() cache.DomainsService

type PostgresConfig

type PostgresConfig struct {
	Host     string
	Port     int
	Dbname   string
	User     string
	Password string
	TTL      int
	Size     int
}

Jump to

Keyboard shortcuts

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