customtypes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeURLSplit

func NodeURLSplit(s string) (node string, url string)

we can't import this from util

Types

type NodeID

type NodeID struct {
	uuid.UUID
}

func NewNodeID

func NewNodeID(id string) *NodeID

func NewNodeIDFromBinary

func NewNodeIDFromBinary(b []byte) *NodeID

func NewNodeIDFromURL

func NewNodeIDFromURL(url string) *NodeID

func (NodeID) Compare

func (u NodeID) Compare(u2 NodeID) int

func (NodeID) Equal

func (u NodeID) Equal(u2 NodeID) bool

func (*NodeID) EqualTo

func (u *NodeID) EqualTo(i interface{}) bool

func (NodeID) Marshal

func (u NodeID) Marshal() ([]byte, error)

func (NodeID) MarshalJSON

func (u NodeID) MarshalJSON() ([]byte, error)

func (*NodeID) MarshalTo

func (u *NodeID) MarshalTo(data []byte) (int, error)

func (*NodeID) Nil

func (u *NodeID) Nil() bool

func (*NodeID) Size

func (u *NodeID) Size() int

func (*NodeID) Unmarshal

func (u *NodeID) Unmarshal(data []byte) error

func (*NodeID) UnmarshalJSON

func (u *NodeID) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL