Documentation ¶
Index ¶
- Variables
- func CreateSession(sessionAssets json.RawMessage) (flows.Session, error)
- func CreateTestSession(testServerURL string, actionToAdd flows.Action) (flows.Session, error)
- func NewChannel(name string, address string, schemes []string, roles []assets.ChannelRole, ...) *flows.Channel
- func NewField(key string, name string, valueType assets.FieldType) *flows.Field
- func NewGroup(name string, query string) *flows.Group
- func NewTelChannel(name string, address string, roles []assets.ChannelRole, ...) *flows.Channel
- func NewTestHTTPServer(port int) (*httptest.Server, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var TestHTTPClient = utils.NewHTTPClient("goflow-testing")
TestHTTPClient a HTTP client instance for tests
Functions ¶
func CreateSession ¶ added in v0.9.10
func CreateSession(sessionAssets json.RawMessage) (flows.Session, error)
CreateSession creates a session with the given assets
func CreateTestSession ¶
CreateTestSession creates a standard example session for testing
func NewChannel ¶ added in v0.15.0
func NewChannel(name string, address string, schemes []string, roles []assets.ChannelRole, parent *assets.ChannelReference) *flows.Channel
func NewTelChannel ¶ added in v0.15.0
func NewTelChannel(name string, address string, roles []assets.ChannelRole, parent *assets.ChannelReference, country string, matchPrefixes []string) *flows.Channel
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.