Documentation ¶
Index ¶
- type Name
- func (n Name) AppendComponent(component string) (*Name, error)
- func (n Name) Children() []codec.TLV
- func (n *Name) DropSuffix()
- func (n Name) IsPrefix(other *Name) bool
- func (n Name) Length() uint16
- func (n Name) Prefix(num int) string
- func (n Name) SegmentStrings() []string
- func (n Name) String() string
- func (n Name) Type() uint16
- func (n Name) TypeString() string
- func (n Name) Value() []byte
- type RegularName
- func (r RegularName) Accepts(other *Name) bool
- func (n RegularName) AppendComponent(component string) (*RegularName, error)
- func (n *RegularName) DropSuffix()
- func (n RegularName) IsPrefix(other *RegularName) bool
- func (n RegularName) Prefix(num int) string
- func (n RegularName) SegmentStrings() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name struct {
Segments []name_segment.NameSegment `json:"segments"`
}
func New ¶
func New(segments []name_segment.NameSegment) *Name
func (*Name) DropSuffix ¶
func (n *Name) DropSuffix()
func (Name) SegmentStrings ¶
func (Name) TypeString ¶
type RegularName ¶
type RegularName struct {
// contains filtered or unexported fields
}
func CreateFromString ¶
func CreateFromString(name string) (*RegularName, error)
func (RegularName) Accepts ¶
func (r RegularName) Accepts(other *Name) bool
func (RegularName) AppendComponent ¶
func (n RegularName) AppendComponent(component string) (*RegularName, error)
func (*RegularName) DropSuffix ¶
func (n *RegularName) DropSuffix()
func (RegularName) IsPrefix ¶
func (n RegularName) IsPrefix(other *RegularName) bool
func (RegularName) Prefix ¶
func (n RegularName) Prefix(num int) string
func (RegularName) SegmentStrings ¶
func (n RegularName) SegmentStrings() []string
Click to show internal directories.
Click to hide internal directories.