core

package
v0.86.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesCore

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

func New

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

func (*FilesCore) HelpGetCdnConfig

func (c *FilesCore) HelpGetCdnConfig(in *mtproto.TLHelpGetCdnConfig) (*mtproto.CdnConfig, error)

HelpGetCdnConfig help.getCdnConfig#52029342 = CdnConfig;

func (*FilesCore) MessagesGetDocumentByHash

func (c *FilesCore) MessagesGetDocumentByHash(in *mtproto.TLMessagesGetDocumentByHash) (*mtproto.Document, error)

MessagesGetDocumentByHash messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document;

func (*FilesCore) MessagesUploadEncryptedFile

func (c *FilesCore) MessagesUploadEncryptedFile(in *mtproto.TLMessagesUploadEncryptedFile) (*mtproto.EncryptedFile, error)

MessagesUploadEncryptedFile messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;

func (*FilesCore) MessagesUploadMedia

func (c *FilesCore) MessagesUploadMedia(in *mtproto.TLMessagesUploadMedia) (*mtproto.MessageMedia, error)

MessagesUploadMedia messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia;

func (*FilesCore) UploadGetCdnFile

func (c *FilesCore) UploadGetCdnFile(in *mtproto.TLUploadGetCdnFile) (*mtproto.Upload_CdnFile, error)

UploadGetCdnFile upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;

func (*FilesCore) UploadGetCdnFileHashes

func (c *FilesCore) UploadGetCdnFileHashes(in *mtproto.TLUploadGetCdnFileHashes) (*mtproto.Vector_FileHash, error)

UploadGetCdnFileHashes upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>;

func (*FilesCore) UploadGetFile

func (c *FilesCore) UploadGetFile(in *mtproto.TLUploadGetFile) (*mtproto.Upload_File, error)

UploadGetFile upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File;

func (*FilesCore) UploadGetFileHashes

func (c *FilesCore) UploadGetFileHashes(in *mtproto.TLUploadGetFileHashes) (*mtproto.Vector_FileHash, error)

UploadGetFileHashes upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<FileHash>;

func (*FilesCore) UploadGetWebFile

func (c *FilesCore) UploadGetWebFile(in *mtproto.TLUploadGetWebFile) (*mtproto.Upload_WebFile, error)

UploadGetWebFile upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;

func (*FilesCore) UploadReuploadCdnFile

func (c *FilesCore) UploadReuploadCdnFile(in *mtproto.TLUploadReuploadCdnFile) (*mtproto.Vector_FileHash, error)

UploadReuploadCdnFile upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;

func (*FilesCore) UploadSaveBigFilePart

func (c *FilesCore) UploadSaveBigFilePart(in *mtproto.TLUploadSaveBigFilePart) (*mtproto.Bool, error)

UploadSaveBigFilePart upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool;

func (*FilesCore) UploadSaveFilePart

func (c *FilesCore) UploadSaveFilePart(in *mtproto.TLUploadSaveFilePart) (*mtproto.Bool, error)

UploadSaveFilePart upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool;

Jump to

Keyboard shortcuts

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