oembed

package
v0.0.0-...-38f4175 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OEmbedDatabase

type OEmbedDatabase interface {
	AddOEmbed(context.Context, *oa_oembed.OEmbedRecord) error
	GetRandomOEmbed(context.Context) (*oa_oembed.OEmbedRecord, error)
	GetOEmbedWithObjectURI(context.Context, string) ([]*oa_oembed.OEmbedRecord, error)
	Close() error
}

func NewSQLOEmbedDatabase

func NewSQLOEmbedDatabase(ctx context.Context, uri string) (OEmbedDatabase, error)

type SQLOEmbedDatabase

type SQLOEmbedDatabase struct {
	OEmbedDatabase
	// contains filtered or unexported fields
}

func (*SQLOEmbedDatabase) AddOEmbed

func (db *SQLOEmbedDatabase) AddOEmbed(ctx context.Context, rec *oa_oembed.OEmbedRecord) error

func (*SQLOEmbedDatabase) Close

func (db *SQLOEmbedDatabase) Close() error

func (*SQLOEmbedDatabase) GetRandomOEmbed

func (db *SQLOEmbedDatabase) GetRandomOEmbed(ctx context.Context) (*oa_oembed.OEmbedRecord, error)

Jump to

Keyboard shortcuts

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