agent

package
v0.0.0-...-9c78904 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgencyClient

type AgencyClient struct {
	Conn           client.Conn
	AgentClient    agency.AgentServiceClient
	ProtocolClient agency.ProtocolServiceClient
}

type Agent

type Agent struct {
	JWT        string
	Client     *AgencyClient
	AgencyHost string
	AgencyPort int
	CredDefID  string
	UserName   string
	Listener   Listener
	ClientID   string
}

func Init

func Init(userName string, schema SchemaInfo, listener Listener) (agent *Agent, err error)

func (*Agent) Login

func (a *Agent) Login() (err error)

type Listener

type Listener interface {
	HandleNewConnection(id string)
	HandleNewCredential(id, connectionID string)
	HandleNewProof(id, connectionID string)
	HandleProofOnHold(id, connectionID string)
}

type SchemaInfo

type SchemaInfo struct {
	Name       string
	Attributes []string
}

Jump to

Keyboard shortcuts

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