core

package
v0.87.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCore

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

func New

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

func (*AuthCore) AuthAcceptLoginToken

func (c *AuthCore) AuthAcceptLoginToken(in *auth.TLAuthAcceptLoginToken) (*mtproto.Authorization, error)

AuthAcceptLoginToken auth.acceptLoginToken token:bytes = Authorization;

func (*AuthCore) AuthExportLoginToken

func (c *AuthCore) AuthExportLoginToken(in *auth.TLAuthExportLoginToken) (*mtproto.Auth_LoginToken, error)

AuthExportLoginToken auth.exportLoginToken api_id:int api_hash:string except_ids:Vector<long> = auth.LoginToken;

func (*AuthCore) AuthImportLoginToken

func (c *AuthCore) AuthImportLoginToken(in *auth.TLAuthImportLoginToken) (*mtproto.Auth_LoginToken, error)

AuthImportLoginToken auth.importLoginToken token:bytes = auth.LoginToken;

Jump to

Keyboard shortcuts

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