engine

package
v0.0.0-...-87e73c9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENGINE_SUPPORTED_WORKERS = map[string]probes.ApplicationProbe{"engine-clean-call-requests": {
	Name:           "clean-call-requests",
	Description:    "Clean all inactive call requests from database",
	LonDescription: "Remove records in call_requests database table with ttl value greater then now.",
	ExecFunction:   CleanCallRequestsExec,
}}

Functions

func CleanCallRequestsExec

func CleanCallRequestsExec(ctx context.Context, dbPool *pgxpool.Pool) error

Types

type CallRequest

type CallRequest struct {
	Id                    string      `json:"id"`
	RegisteredContractIid string      `json:"registered_contract_id"`
	Caller                string      `json:"caller"`
	MoonstreamUserId      string      `json:"moonstream_user_id"`
	Method                string      `json:"method"`
	Parameters            interface{} `json:"parameters"`
	ExpiresAt             time.Time   `json:"expires_at"`
	CreatedAt             time.Time   `json:"created_at"`
	UpdatedAt             time.Time   `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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