Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address string
Address represents an Ethereum address
const ZeroAddress Address = "0x0000000000000000000000000000000000000000"
ZeroAddress is the all-zero Ethereum address
func (Address) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for the address type
func (*Address) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for the address type
type Policy ¶
Policy represents an identifier for a policy within an access context
func ParsePolicyFromIdentifierString ¶
ParsePolicyFromIdentifierString Parses string to Policy type
type PolicyIdentifier ¶
type PolicyIdentifier struct { ContextID common.Hash `json:"context_id"` PolicyID common.Hash `json:"policy_id"` }
PolicyIdentifier represents an identifier for a policy within an access context
func NewPolicyIdentifier ¶
func NewPolicyIdentifier(contextID string, policyID string) PolicyIdentifier
NewPolicyIdentifier creates a new token identifiers
func (PolicyIdentifier) String ¶
func (p PolicyIdentifier) String() string
type Role ¶
Role represents an identifier for a role within an access context
func ParseRoleFromIdentifierString ¶
ParseRoleFromIdentifierString Parses string to Role type
type RoleIdentifier ¶
type RoleIdentifier struct { ContextID common.Hash `json:"context_id"` RoleID common.Hash `json:"role_id"` }
RoleIdentifier represents an identifier for a role within an access context
func NewRoleIdentifier ¶
func NewRoleIdentifier(contextID string, roleID string) RoleIdentifier
NewRoleIdentifier creates a new token identifiers
func (RoleIdentifier) String ¶
func (r RoleIdentifier) String() string