Documentation ¶
Index ¶
- type ID
- func (iri ID) Eq(x ID) bool
- func (iri ID) Heir(segment string) ID
- func (iri ID) Identity() ID
- func (iri ID) Parent(rank ...int) ID
- func (iri ID) Path() string
- func (iri ID) Prefix(rank ...int) string
- func (iri ID) Segments() []string
- func (iri ID) Suffix(rank ...int) string
- func (iri ID) ToIRI() *IRI
- type IRI
- func (iri IRI) Eq(x IRI) bool
- func (iri IRI) Heir(segment string) IRI
- func (iri IRI) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (iri IRI) MarshalJSON() ([]byte, error)
- func (iri IRI) Parent(rank ...int) IRI
- func (iri IRI) Prefix(rank ...int) string
- func (iri IRI) Segments() []string
- func (iri IRI) String() string
- func (iri IRI) Suffix(rank ...int) string
- func (iri *IRI) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
- func (iri *IRI) UnmarshalJSON(b []byte) error
- type Thing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
type ID struct {
IRI IRI `dynamodbav:"id" json:"id"`
}
ID is type tagging built over IRI type, unique identity of a thing.
type MyStruct struct { iri.ID }
type IRI ¶
type IRI struct {
Seq []string
}
IRI is Internationalized Resource Identifier https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier
func (IRI) MarshalDynamoDBAttributeValue ¶
func (iri IRI) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
MarshalDynamoDBAttributeValue `IRI ⟼ "prefix/suffix"`
func (IRI) MarshalJSON ¶
MarshalJSON `IRI ⟼ "prefix:suffix"`
func (*IRI) UnmarshalDynamoDBAttributeValue ¶
func (iri *IRI) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error
UnmarshalDynamoDBAttributeValue `"prefix/suffix" ⟼ IRI`
func (*IRI) UnmarshalJSON ¶
UnmarshalJSON `"prefix:suffix" ⟼ IRI`
Click to show internal directories.
Click to hide internal directories.