Documentation ¶
Index ¶
- type Client
- func (c *Client) InBandMessagesFromState(s gregor.State) ([]gregor.InBandMessage, error)
- func (c *Client) Restore() error
- func (c *Client) Save() error
- func (c *Client) State(cli gregor1.IncomingInterface) (res gregor.State, err error)
- func (c *Client) StateMachineConsumeMessage(m gregor1.Message) error
- func (c *Client) StateMachineInBandMessagesSince(t time.Time) ([]gregor.InBandMessage, error)
- func (c *Client) StateMachineLatestCTime() *time.Time
- func (c *Client) StateMachineState(t gregor.TimeOrOffset) (gregor.State, error)
- func (c *Client) Sync(cli gregor1.IncomingInterface, syncRes *chat1.SyncAllNotificationRes) (res []gregor.InBandMessage, err error)
- func (c *Client) SyncFromTime(cli gregor1.IncomingInterface, t *time.Time, syncResult *gregor1.SyncResult) (msgs []gregor.InBandMessage, err error)
- type ErrHashMismatch
- type LocalStorageEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { User gregor.UID Device gregor.DeviceID Sm gregor.StateMachine Storage LocalStorageEngine Log rpc.LogOutput SaveTimer <-chan time.Time }
func (*Client) InBandMessagesFromState ¶
func (*Client) StateMachineConsumeMessage ¶
func (*Client) StateMachineInBandMessagesSince ¶
func (*Client) StateMachineLatestCTime ¶
func (*Client) StateMachineState ¶
func (*Client) Sync ¶
func (c *Client) Sync(cli gregor1.IncomingInterface, syncRes *chat1.SyncAllNotificationRes) (res []gregor.InBandMessage, err error)
func (*Client) SyncFromTime ¶
func (c *Client) SyncFromTime(cli gregor1.IncomingInterface, t *time.Time, syncResult *gregor1.SyncResult) (msgs []gregor.InBandMessage, err error)
type ErrHashMismatch ¶
type ErrHashMismatch struct{}
func (ErrHashMismatch) Error ¶
func (e ErrHashMismatch) Error() string
Click to show internal directories.
Click to hide internal directories.