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