Documentation ¶
Index ¶
Constants ¶
View Source
const (
// The database table name for meta options.
TableName = "post_options"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Insert(id int, p domain.PostOptions) error Delete(postID int) error Exists(id int) bool }
Repository defines methods for meta options to interact with the database.
type Store ¶
Store defines the data layer for meta.
func (*Store) Delete ¶
Delete
Returns nil if the post meta was successfully deleted. Returns errors.INTERNAL if the SQL query was invalid. Returns errors.NOTFOUND if the post meta was not found.
Click to show internal directories.
Click to hide internal directories.