Documentation ¶
Index ¶
- Constants
- type Address
- type Cord
- func (c *Cord) Close() (err error)
- func (c *Cord) Connect(ctx context.Context) error
- func (c *Cord) RecvAddress(ctx context.Context, handler func(a Address) error)
- func (c *Cord) RecvGPSLocation(ctx context.Context, handler func(loc GPSLocation) error)
- func (c *Cord) RecvUser(ctx context.Context, handler func(u User) error)
- func (c *Cord) SendAddress(ctx context.Context, a Address) error
- func (c *Cord) SendGPSLocation(ctx context.Context, loc GPSLocation) error
- func (c *Cord) SendUser(ctx context.Context, u User) error
- type GPSLocation
- type User
Constants ¶
View Source
const ( GPSLocationChannel = "msg.gpslocation" AddressChannel = "msg.address" UserChannel = "msg.user" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cord ¶
type Cord struct {
// contains filtered or unexported fields
}
func NewWithGrouping ¶
func (*Cord) RecvAddress ¶
func (*Cord) RecvGPSLocation ¶
func (c *Cord) RecvGPSLocation(ctx context.Context, handler func(loc GPSLocation) error)
func (*Cord) SendGPSLocation ¶
func (c *Cord) SendGPSLocation(ctx context.Context, loc GPSLocation) error
type GPSLocation ¶
Click to show internal directories.
Click to hide internal directories.