Documentation ¶
Index ¶
- func NewChannel(uuid assets.ChannelUUID, name string, address string, schemes []string, ...) assets.Channel
- func NewField(key string, name string, valueType assets.FieldType) assets.Field
- func NewGroup(uuid assets.GroupUUID, name string, query string) assets.Group
- func NewLabel(uuid assets.LabelUUID, name string) assets.Label
- func NewResthook(slug string, subscribers []string) assets.Resthook
- func NewTelChannel(uuid assets.ChannelUUID, name string, address string, ...) assets.Channel
- func ReadChannel(data json.RawMessage) (assets.Channel, error)
- func ReadChannels(data json.RawMessage) ([]assets.Channel, error)
- func ReadField(data json.RawMessage) (assets.Field, error)
- func ReadFields(data json.RawMessage) ([]assets.Field, error)
- func ReadFlow(data json.RawMessage) (assets.Flow, error)
- func ReadGroup(data json.RawMessage) (assets.Group, error)
- func ReadGroups(data json.RawMessage) ([]assets.Group, error)
- func ReadLabel(data json.RawMessage) (assets.Label, error)
- func ReadLabels(data json.RawMessage) ([]assets.Label, error)
- func ReadLocationHierarchies(data json.RawMessage) ([]assets.LocationHierarchy, error)
- func ReadResthook(data json.RawMessage) (assets.Resthook, error)
- func ReadResthooks(data json.RawMessage) ([]assets.Resthook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannel ¶
func NewChannel(uuid assets.ChannelUUID, name string, address string, schemes []string, roles []assets.ChannelRole, parent *assets.ChannelReference) assets.Channel
NewChannel creates a new channel
func NewTelChannel ¶
func NewTelChannel(uuid assets.ChannelUUID, name string, address string, roles []assets.ChannelRole, parent *assets.ChannelReference, country string, matchPrefixes []string) assets.Channel
NewTelChannel creates a new tel channel
func ReadChannel ¶
func ReadChannel(data json.RawMessage) (assets.Channel, error)
ReadChannel reads a channel from the given JSON
func ReadChannels ¶
func ReadChannels(data json.RawMessage) ([]assets.Channel, error)
ReadChannels reads channels from the given JSON
func ReadField ¶
func ReadField(data json.RawMessage) (assets.Field, error)
ReadField reads a field from the given JSON
func ReadFields ¶
func ReadFields(data json.RawMessage) ([]assets.Field, error)
ReadFields reads fields from the given JSON
func ReadFlow ¶
func ReadFlow(data json.RawMessage) (assets.Flow, error)
ReadFlow reads a flow from the given JSON
func ReadGroup ¶
func ReadGroup(data json.RawMessage) (assets.Group, error)
ReadGroup reads a group from the given JSON
func ReadGroups ¶
func ReadGroups(data json.RawMessage) ([]assets.Group, error)
ReadGroups reads groups from the given JSON
func ReadLabel ¶
func ReadLabel(data json.RawMessage) (assets.Label, error)
ReadLabel reads a label from the given JSON
func ReadLabels ¶
func ReadLabels(data json.RawMessage) ([]assets.Label, error)
ReadLabels reads labels from the given JSON
func ReadLocationHierarchies ¶
func ReadLocationHierarchies(data json.RawMessage) ([]assets.LocationHierarchy, error)
ReadLocationHierarchies reads location hierarchies from the given JSON
func ReadResthook ¶
func ReadResthook(data json.RawMessage) (assets.Resthook, error)
ReadResthook reads a resthook from the given JSON
func ReadResthooks ¶
func ReadResthooks(data json.RawMessage) ([]assets.Resthook, error)
ReadResthooks reads a resthook set from the given JSON
Types ¶
This section is empty.