Documentation ¶
Overview ¶
Package actors is used to hold common actors that can be utilized from outside packages.
Package actors is used to hold common actors that can be utilized from outside packages.
Package actors is used to hold common actors that can be utilized from outside packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor interface { // StartActor starts the actor and initializes its variables. StartActor() interface{} // Tell sends a message to the actor and requests an operation that requires no response. Tell(structs.Message) // Ask sends a message to the actor and requests an operation that requires a response. Ask(structs.Message) structs.Message // contains filtered or unexported methods }
Actor defines a common interface for all actors to follow.
type DHT22 ¶
type DHT22 struct {
// contains filtered or unexported fields
}
DHT22 is a model of what is needed to use a DHT22 Temperature Sensor.
func (*DHT22) Ask ¶
Ask sends a message to the actor and requests an operation that requires a response.
func (*DHT22) StartActor ¶
StartActor starts the actor and initializes its variables.
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay is a model of what is needed to use a relay.
func (*Relay) Ask ¶
Ask sends a message to the actor and requests an operation that requires a response.
func (*Relay) StartActor ¶
StartActor starts the actor and initializes its variables.