core

package
v0.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncCore

type SyncCore struct {
	logx.Logger
	MD *metadata.RpcMetadata
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, svcCtx *svc.ServiceContext) *SyncCore

func (*SyncCore) SyncBroadcastUpdates

func (c *SyncCore) SyncBroadcastUpdates(in *sync.TLSyncBroadcastUpdates) (*mtproto.Void, error)

SyncBroadcastUpdates sync.broadcastUpdates broadcast_type:int chat_id:long exclude_id_list:Vector<long> updates:Updates = Void;

func (*SyncCore) SyncPushRpcResult

func (c *SyncCore) SyncPushRpcResult(in *sync.TLSyncPushRpcResult) (*mtproto.Void, error)

SyncPushRpcResult sync.pushRpcResult server_id:long auth_key_id:long req_msg_id:long result:bytes = PushUpdates;

func (*SyncCore) SyncPushUpdates

func (c *SyncCore) SyncPushUpdates(in *sync.TLSyncPushUpdates) (*mtproto.Void, error)

SyncPushUpdates sync.pushUpdates user_id:long updates:Updates = Void;

func (*SyncCore) SyncPushUpdatesIfNot

func (c *SyncCore) SyncPushUpdatesIfNot(in *sync.TLSyncPushUpdatesIfNot) (*mtproto.Void, error)

SyncPushUpdatesIfNot sync.pushUpdatesIfNot user_id:long excludes:Vector<int64> updates:Updates = Void;

func (*SyncCore) SyncUpdatesMe

func (c *SyncCore) SyncUpdatesMe(in *sync.TLSyncUpdatesMe) (*mtproto.Void, error)

SyncUpdatesMe sync.updatesMe flags:# user_id:long auth_key_id:long server_id:string session_id:flags.0?long updates:Updates = Void;

func (*SyncCore) SyncUpdatesNotMe

func (c *SyncCore) SyncUpdatesNotMe(in *sync.TLSyncUpdatesNotMe) (*mtproto.Void, error)

SyncUpdatesNotMe sync.updatesNotMe user_id:long auth_key_id:long updates:Updates = Void;

type SyncType

type SyncType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL