session: add Agent.ID() method
This commit is contained in:
parent
d6c56bd4f0
commit
84a64e9251
|
|
@ -52,6 +52,9 @@ func (ag *Agent) Backend() backend.Backend {
|
|||
// Name returns the agent's name.
|
||||
func (ag *Agent) Name() string { return ag.agentName }
|
||||
|
||||
// ID returns the agent's unique identity.
|
||||
func (ag *Agent) ID() string { return ag.id }
|
||||
|
||||
// BackendName returns the name of the active backend.
|
||||
func (ag *Agent) BackendName() string {
|
||||
if ag.runtime == nil || ag.runtime.Backend == nil {
|
||||
|
|
|
|||
Reference in New Issue