Documentation ¶
Overview ¶
Package e2e contains updates.Engine tests.
Index ¶
- type EventBuilder
- type Handler
- type Server
- func (s *Server) CreateEvent(f func(ev *EventBuilder)) *tg.Updates
- func (s *Server) UpdatesGetChannelDifference(ctx context.Context, request *tg.UpdatesGetChannelDifferenceRequest) (tg.UpdatesChannelDifferenceClass, error)
- func (s *Server) UpdatesGetDifference(ctx context.Context, request *tg.UpdatesGetDifferenceRequest) (tg.UpdatesDifferenceClass, error)
- func (s *Server) UpdatesGetState(ctx context.Context) (*tg.UpdatesState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBuilder ¶
type EventBuilder struct {
// contains filtered or unexported fields
}
EventBuilder struct.
func (*EventBuilder) SendMessage ¶
SendMessage send a new message.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles updates.
func (*Handler) ChannelTooLong ¶
ChannelTooLong handler.
func (*Handler) HandleDiff ¶
func (h *Handler) HandleDiff(diff updates.DiffUpdate) error
HandleDiff handler.
func (*Handler) HandleUpdates ¶
HandleUpdates handler.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server for testing gaps.
func (*Server) CreateEvent ¶
func (s *Server) CreateEvent(f func(ev *EventBuilder)) *tg.Updates
CreateEvent creates new event.
func (*Server) UpdatesGetChannelDifference ¶
func (s *Server) UpdatesGetChannelDifference( ctx context.Context, request *tg.UpdatesGetChannelDifferenceRequest, ) (tg.UpdatesChannelDifferenceClass, error)
UpdatesGetChannelDifference returns difference between local and remote channel states.
func (*Server) UpdatesGetDifference ¶
func (s *Server) UpdatesGetDifference(ctx context.Context, request *tg.UpdatesGetDifferenceRequest) (tg.UpdatesDifferenceClass, error)
UpdatesGetDifference returns difference between local and remote states.
func (*Server) UpdatesGetState ¶
UpdatesGetState returns current remote state.
Click to show internal directories.
Click to hide internal directories.