svc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the version of the service.
	Version = "devel"
	// CommitHash is the commit hash of the service.
	CommitHash = ""
)
View Source
const DefaultExpirationDuration = time.Hour

DefaultExpirationDuration is the default duration for an exchange to be considered outdated.

Variables

This section is empty.

Functions

func ServiceInfoWorkflow

func ServiceInfoWorkflow(_ workflow.Context, _ api.ServiceInfoParams) (api.ServiceInfoResults, error)

ServiceInfoWorkflow returns the service information.

Types

type Exchanges

type Exchanges interface {
	Register(w worker.Worker)

	GetExchangeWorkflow(
		ctx workflow.Context,
		params api.GetExchangeWorkflowParams,
	) (api.GetExchangeWorkflowResults, error)

	ListExchangesWorkflow(
		ctx workflow.Context,
		params api.ListExchangesWorkflowParams,
	) (api.ListExchangesWorkflowResults, error)
}

Exchanges is the exchanges domain.

func New

func New(db db.DB, exchs exchangesadapter.Exchanges) Exchanges

New creates a new exchanges workflows.

Directories

Path Synopsis
db
Package db is a generated GoMock package.
Package db is a generated GoMock package.
sql
Package exchanges is a generated GoMock package.
Package exchanges is a generated GoMock package.

Jump to

Keyboard shortcuts

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