application

package
v0.0.0-...-8401909 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package application provides the core business API of handling everything application related.

Index

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 (c Core) AddApplication(ctx context.Context, application models.Application) (string, string, error)

func (Core) AddApplications

func (c Core) AddApplications(ctx context.Context, applications []models.Application) (bool, error)

func (Core) GetApplication

func (c Core) GetApplication(ctx context.Context, applicationID string) (models.Application, error)

func (Core) GetApplicationCountBtnKeys

func (c Core) GetApplicationCountBtnKeys(ctx context.Context, startKey, endKey string) (int64, error)

func (Core) GetApplicationsPagination

func (c Core) GetApplicationsPagination(ctx context.Context, latestApplicationID string, order string, pageNo, limit int64) ([]db.Application, int64, int64, error)

func (Core) GetEarliestApplicationID

func (c Core) GetEarliestApplicationID(ctx context.Context) (string, error)

func (Core) GetLatestApplicationID

func (c Core) GetLatestApplicationID(ctx context.Context) (string, error)

Directories

Path Synopsis
Package db contains application related CRUD functionality.
Package db contains application related CRUD functionality.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL