Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
ssntp: add client getter for role
Browse files Browse the repository at this point in the history
This will enable for example launcher to understand if it is a net node, a
compute node, or both and thus conditionally take applicable actions.

Signed-off-by: Tim Pepper <[email protected]>
  • Loading branch information
Tim Pepper committed Aug 26, 2016
1 parent 0f87abf commit 47528bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssntp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ func (client *Client) SendTracedError(error Error, payload []byte, trace *TraceC
return client.sendError(error, payload, trace)
}

// Role exports the SSNTP client role.
func (client *Client) Role() Role {
return client.role
}

// UUID exports the SSNTP client Universally Unique ID.
func (client *Client) UUID() string {
return client.uuid.String()
Expand Down

0 comments on commit 47528bf

Please sign in to comment.