Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InformationGetter ¶
type InformationGetter interface { // GetInformation finds and calculates some information on the given point, then calls onPointRecorded passing the information to it. GetInformation( ctx context.Context, previousPoint model.Point, point model.Point, onPointAdded OnPointAdded, ) error }
InformationGetter is an interface for recording a route composited of a sequence of points.
type MessagePoster ¶
type MessagePoster interface { // PostMessage posts the given message to the given point, then calls onPostedMessage for each message posted on the point. PostMessage( ctx context.Context, point model.Point, message string, onPostedMessage OnPostedMessage, ) error }
MessagePoster is an interface for posting a message to a point.
type OnPointAdded ¶
type OnPostedMessage ¶
type RouteInformationGetter ¶
type RouteInformationGetter struct {
// contains filtered or unexported fields
}
func NewRouteInformationGetter ¶
func NewRouteInformationGetter( features repository.Features, ) *RouteInformationGetter
func (*RouteInformationGetter) GetInformation ¶
func (r *RouteInformationGetter) GetInformation( ctx context.Context, previousPoint model.Point, point model.Point, onPointAdded OnPointAdded, ) error
type RouteMessagePoster ¶
type RouteMessagePoster struct {
// contains filtered or unexported fields
}
func NewRouteMessagePoster ¶
func NewRouteMessagePoster( feature repository.Features, messages repository.Messages, ) *RouteMessagePoster
func (*RouteMessagePoster) PostMessage ¶
func (r *RouteMessagePoster) PostMessage( ctx context.Context, point model.Point, message string, onPostedMessage OnPostedMessage, ) error
Click to show internal directories.
Click to hide internal directories.