Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ListError when app cannot be listed ListError errors.TraceableType = "AppListError" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCursorList ¶
type Repository ¶
type Repository interface { Create(c context.Context, id string, data *App) error Get(c context.Context, id string) (*App, error) Update(c context.Context, id string, data *App) error Delete(c context.Context, id string) error FindAll(c context.Context, startAt string, limit int64) (*AppCursorList, error) FindByTenant(c context.Context, tenantID string, startAt string, limit int64) (*AppCursorList, error) }
Repository is the interface to store the data (it will need to be implemented)
type Service ¶
type Service interface { //Create(c context.Context, data *App) (string, error) //Get(c context.Context, appID string) (*App, error) //Update(c context.Context, appID string, data *App) error //Delete(c context.Context, appID string) error List(c context.Context, startAt string, limit int64) (*AppCursorList, error) GetAppsForTenant(c context.Context, tenantID string, startAt string, limit int64) (*AppCursorList, error) }
Service for the app module
func New ¶
func New(apps Repository) Service
Click to show internal directories.
Click to hide internal directories.