Categorygithub.com/mesg-foundation/go-service
modulepackage
0.0.0-20190105103631-e741021f7877
Repository: https://github.com/mesg-foundation/go-service.git
Documentation: pkg.go.dev

# README

# Packages

No description provided by the author
Package mesgtest is a testing package for MESG service.
No description provided by the author

# Functions

DialOption used to mock socket communication for unit testing.
EndpointOption receives the TCP endpoint of mesg-core.
LogOutputOption uses out as a log destination.
New starts a new Service with options.
Task creates an executable task for given task key, handler called when a matching task execution request arrived.
TimeoutOption receives d to use while dialing mesg-core and making requests.
TokenOption receives token which is the unique id of this service.

# Structs

Execution holds information about a Task execution.
Service represents a MESG service.

# Interfaces

Data represents event data and output data of tasks.
Dialer describes a dialer implementation for network.
Taskable represents implementation of task executor.

# Type aliases

Option is the configuration func of Service.