Documentation ¶
Overview ¶
Package application provides the core business API of handling everything application related.
Index ¶
- type Core
- func (c Core) AddApplication(ctx context.Context, application models.Application) (string, string, error)
- func (c Core) AddApplications(ctx context.Context, applications []models.Application) (bool, error)
- func (c Core) GetApplication(ctx context.Context, applicationID string) (models.Application, error)
- func (c Core) GetApplicationCountBtnKeys(ctx context.Context, startKey, endKey string) (int64, error)
- func (c Core) GetApplicationsPagination(ctx context.Context, latestApplicationID string, order string, ...) ([]db.Application, int64, int64, error)
- func (c Core) GetEarliestApplicationID(ctx context.Context) (string, error)
- func (c Core) GetLatestApplicationID(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core manages the set of API's for application access.
func NewCore ¶
func NewCore(log *zap.SugaredLogger, couchClient *kivik.Client, dbName string) Core
NewCore constructs a core for application api access.
func (Core) AddApplication ¶
func (Core) AddApplications ¶
func (Core) GetApplication ¶
func (Core) GetApplicationCountBtnKeys ¶
func (Core) GetApplicationsPagination ¶
func (Core) GetEarliestApplicationID ¶
Click to show internal directories.
Click to hide internal directories.