Documentation ¶
Index ¶
- Variables
- type Address
- func (a *Address) Equals(x *Address) bool
- func (a *Address) Host() string
- func (a *Address) HostPort() string
- func (a *Address) ID() string
- func (a *Address) MarshalBinary() (data []byte, err error)
- func (a *Address) Name() string
- func (a *Address) Parent() *Address
- func (a *Address) Port() int
- func (a *Address) String() string
- func (a *Address) System() string
- func (a *Address) UnmarshalBinary(data []byte) error
- func (a *Address) Validate() error
- func (a *Address) WithHost(host string) *Address
- func (a *Address) WithName(name string) *Address
- func (a *Address) WithParent(parent *Address) *Address
- func (a *Address) WithPort(port int) *Address
- func (a *Address) WithSystem(system string) *Address
Constants ¶
This section is empty.
Variables ¶
var NoSender = new(goaktpb.Address)
NoSender means that there is no sender
Functions ¶
This section is empty.
Types ¶
type Address ¶
func (*Address) HostPort ¶
HostPort returns the host and port in the following string format @host:port
func (*Address) MarshalBinary ¶
MarshalBinary encodes the receiver into a binary form and returns the result.
func (*Address) String ¶
String returns the canonical String representation of this Address formatted as: `protocol://system@host:port/name`
func (*Address) UnmarshalBinary ¶
UnmarshalBinary must be able to decode the form generated by MarshalBinary. UnmarshalBinary must copy the data if it wishes to retain the data after returning.
func (*Address) WithHost ¶
WithHost sets the hosts of a given Address and returns the instance of the address
func (*Address) WithName ¶
WithName sets the name of a given Address and returns the instance of the address
func (*Address) WithParent ¶
WithParent sets the parent of a given Address and returns the instance of the address
func (*Address) WithPort ¶
WithPort sets the port of a given Address and returns the instance of the address
func (*Address) WithSystem ¶
WithSystem sets the actor system of a given Address and returns the instance of the address