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.
Click to show internal directories.
Click to hide internal directories.