Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CounterpartRole ¶
func CounterpartRole(r charm.RelationRole) charm.RelationRole
CounterpartRole returns the RelationRole that this RelationRole can relate to. This should remain an internal method because the relation model does not guarantee that for every role there will necessarily exist a single counterpart role that is sensible for basing algorithms upon.
Types ¶
type Endpoint ¶
Endpoint represents one endpoint of a relation.
func (Endpoint) CanRelateTo ¶
CanRelateTo returns whether a relation may be established between e and other.
Click to show internal directories.
Click to hide internal directories.