listen

package
v0.1.133 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	*update.Updater
	// contains filtered or unexported fields
}

func NewListener

func NewListener(db store.DB, updater *update.Updater) *Listener

func (*Listener) AddConnection

func (l *Listener) AddConnection(info *agency.JobInfo, data *agency.Connection) (err error)

func (*Listener) AddCredential

func (l *Listener) AddCredential(info *agency.JobInfo, data *agency.Credential) (job *dbModel.Job, err error)

func (*Listener) AddMessage

func (l *Listener) AddMessage(info *agency.JobInfo, data *agency.Message) (err error)

func (*Listener) AddProof

func (l *Listener) AddProof(info *agency.JobInfo, data *agency.Proof) (job *dbModel.Job, err error)

func (*Listener) FailJob added in v0.1.3

func (l *Listener) FailJob(info *agency.JobInfo) (err error)

func (*Listener) UpdateCredential

func (l *Listener) UpdateCredential(
	info *agency.JobInfo,
	credentialInput *agency.Credential,
	data *agency.CredentialUpdate,
) (err error)

func (*Listener) UpdateMessage

func (l *Listener) UpdateMessage(_ *agency.JobInfo, _ *agency.MessageUpdate) (err error)

func (*Listener) UpdateProof

func (l *Listener) UpdateProof(info *agency.JobInfo, proofInput *agency.Proof, data *agency.ProofUpdate) (err error)

Jump to

Keyboard shortcuts

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