username_client

package
v0.86.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsernameClient

type UsernameClient interface {
	UsernameGetAccountUsername(ctx context.Context, in *username.TLUsernameGetAccountUsername) (*username.UsernameData, error)
	UsernameCheckAccountUsername(ctx context.Context, in *username.TLUsernameCheckAccountUsername) (*username.UsernameExist, error)
	UsernameGetChannelUsername(ctx context.Context, in *username.TLUsernameGetChannelUsername) (*username.UsernameData, error)
	UsernameCheckChannelUsername(ctx context.Context, in *username.TLUsernameCheckChannelUsername) (*username.UsernameExist, error)
	UsernameUpdateUsernameByPeer(ctx context.Context, in *username.TLUsernameUpdateUsernameByPeer) (*mtproto.Bool, error)
	UsernameCheckUsername(ctx context.Context, in *username.TLUsernameCheckUsername) (*username.UsernameExist, error)
	UsernameUpdateUsername(ctx context.Context, in *username.TLUsernameUpdateUsername) (*mtproto.Bool, error)
	UsernameDeleteUsername(ctx context.Context, in *username.TLUsernameDeleteUsername) (*mtproto.Bool, error)
	UsernameResolveUsername(ctx context.Context, in *username.TLUsernameResolveUsername) (*mtproto.Peer, error)
	UsernameGetListByUsernameList(ctx context.Context, in *username.TLUsernameGetListByUsernameList) (*username.Vector_UsernameData, error)
	UsernameDeleteUsernameByPeer(ctx context.Context, in *username.TLUsernameDeleteUsernameByPeer) (*mtproto.Bool, error)
	UsernameSearch(ctx context.Context, in *username.TLUsernameSearch) (*username.Vector_UsernameData, error)
}

func NewUsernameClient

func NewUsernameClient(cli zrpc.Client) UsernameClient

type UsernameClientHelper

type UsernameClientHelper struct {
	// contains filtered or unexported fields
}

func NewUsernameClientHelper

func NewUsernameClientHelper(cli zrpc.Client) *UsernameClientHelper

func (*UsernameClientHelper) CheckUsername

func (m *UsernameClientHelper) CheckUsername(ctx context.Context, name string) (int, error)

func (*UsernameClientHelper) Client

func (*UsernameClientHelper) UpdateUsername

func (m *UsernameClientHelper) UpdateUsername(ctx context.Context, peerType int32, peerId int64, name string) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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