types

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewField

func NewField(key string, name string, valueType assets.FieldType) assets.Field

NewField creates a new field from the passed in key, name and type

func NewGroup

func NewGroup(uuid assets.GroupUUID, name string, query string) assets.Group

NewGroup creates a new group from the passed in UUID, name and query

func NewLabel

func NewLabel(uuid assets.LabelUUID, name string) assets.Label

NewLabel creates a new label from the passed in UUID and name

func NewResthook

func NewResthook(slug string, subscribers []string) assets.Resthook

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.

Jump to

Keyboard shortcuts

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