rdbms

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataStore

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

MetadataStore represents a rdbms(postgres, mysql, sqlite, cockroachdb) backed metadata store.

func NewStorage

func NewStorage(connectionName string) *MetadataStore

NewStorage returns an unconnected RDBMS Metadata Storage that satisfies the Getter and Setter interfaces. You must call Connect() on the returned store before using it. connectionName

func (*MetadataStore) Connect

func (r *MetadataStore) Connect() error

Connect creates connection to rdmbs backend.

func (*MetadataStore) Get

func (s *MetadataStore) Get(module string) (string, error)

Get retrieves the cdn base URL for a module

func (*MetadataStore) Save

func (s *MetadataStore) Save(module, redirectURL string) error

Save saves the module and it's cdn base URL.

Jump to

Keyboard shortcuts

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