service

package
v0.0.0-...-6a8cb58 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService interface {
	Create(ctx context.Context, prd *entity.CardRequest) error
}

func NewApplicationService

func NewApplicationService(db *bbolt.DB) ApplicationService

type CardService

type CardService interface {
	FindAll(ctx context.Context) ([]entity.CachedCard, error)
	Activate(ctx context.Context, card entity.CachedCard) error
}

func NewCardService

func NewCardService(db *bbolt.DB) CardService

type ConfigService

type ConfigService interface {
	Save(ctx context.Context, cfg *entity.Config) error
	FindByName(ctx context.Context, name string) (*entity.Config, error)
	FindAll(ctx context.Context) (*entity.ConfigList, error)
}

func NewConfigService

func NewConfigService(db *bbolt.DB) ConfigService

type OperationService

type OperationService interface {
	Create(ctx context.Context, opr entity.MakeOperationRequest) error
}

func NewOperationService

func NewOperationService(db *bbolt.DB) OperationService

type ProductService

type ProductService interface {
	Syns(ctx context.Context) error
	FindByNumber(ctx context.Context, product_number string) (*entity.Product, error)
	FindAll(ctx context.Context) (*entity.ProductList, error)
	FindAllAgents(ctx context.Context) (*entity.Agent, error)
}

func NewProductService

func NewProductService(db *bbolt.DB) ProductService

type TestCaseService

type TestCaseService interface {
	Save(ctx context.Context, tc entity.TestCase) error
	FindById(ctx context.Context, id int64) (*entity.TestCase, error)
	FindAll(ctx context.Context) ([]entity.TestCase, error)
}

func NewTestCaseService

func NewTestCaseService(db *bbolt.DB) TestCaseService

Jump to

Keyboard shortcuts

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