feat: implement publish endpoint and related database functionality
This commit is contained in:
parent
b09275fa67
commit
582d93a103
1 changed files with 417 additions and 30 deletions
|
|
@ -21,6 +21,8 @@ type Database interface {
|
|||
List(ctx context.Context, filter map[string]interface{}, cursor string, limit int) ([]*model.Entry, string, error)
|
||||
// GetByID retrieves a single ServerDetail by it's ID
|
||||
GetByID(ctx context.Context, id string) (*model.ServerDetail, error)
|
||||
// Publish adds a new ServerDetail to the database
|
||||
Publish(ctx context.Context, serverDetail *model.ServerDetail) error
|
||||
// Close closes the database connection
|
||||
Close() error
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue