services

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertInputStatus

func ConvertInputStatus(cInputStatus cModel.CompletionStatus) model.InputCompletionStatus

Types

type Convert

type Convert struct {
	// contains filtered or unexported fields
}

func NewConvert

func NewConvert(inputRepository *repository.InputRepository) *Convert

type InputService

type InputService struct {
	AppRepository   repository.AppRepositoryInterface
	InputRepository repository.InputRepositoryInterface
	EpochRepository repository.EpochRepositoryInterface
	// contains filtered or unexported fields
}

func NewInputService

func NewInputService(db *sqlx.DB) *InputService

func (*InputService) Close added in v0.0.2

func (s *InputService) Close() error

Close implements InputServiceInterface.

func (*InputService) CreateInput

func (s *InputService) CreateInput(ctx context.Context, input model.Input) error

func (*InputService) CreateInputWithAddress

func (s *InputService) CreateInputWithAddress(ctx context.Context, appContract common.Address, input model.Input) error

func (*InputService) StartTransaction added in v0.0.2

func (s *InputService) StartTransaction(ctx context.Context) (context.Context, *sqlx.Tx, error)

StartTransaction implements InputServiceInterface.

Jump to

Keyboard shortcuts

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