grpc_testing

package
v0.0.0-...-d9af017 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rpc is a generated protocol buffer package.

It is generated from these files:

auth_test.proto

It has these top-level messages:

TLAuthSendCode
TLAuthSentCode
Auth_SentCode
Bool
TLBoolFalse
TLBoolTrue
TLTrue
TLAuthSentCodeTypeApp
TLAuthSentCodeTypeSms
TLAuthSentCodeTypeCall
TLAuthSentCodeTypeFlashCall
Auth_SentCodeType
Auth_CodeType
TLAuthCodeTypeSms
TLAuthCodeTypeCall
TLAuthCodeTypeFlashCall

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

Types

type AuthClient

type AuthClient interface {
	AuthSentCode(ctx context.Context, in *TLAuthSendCode, opts ...grpc.CallOption) (*Auth_SentCode, error)
}

func NewAuthClient

func NewAuthClient(cc *grpc.ClientConn) AuthClient

type AuthServer

type AuthServer interface {
	AuthSentCode(context.Context, *TLAuthSendCode) (*Auth_SentCode, error)
}

type Auth_CodeType

type Auth_CodeType struct {
	// Types that are valid to be assigned to Payload:
	//	*Auth_CodeType_AuthCodeTypeSms
	//	*Auth_CodeType_AuthCodeTypeCall
	//	*Auth_CodeType_AuthCodeTypeFlashCall
	Payload isAuth_CodeType_Payload `protobuf_oneof:"payload"`
}

func (*Auth_CodeType) Descriptor

func (*Auth_CodeType) Descriptor() ([]byte, []int)

func (*Auth_CodeType) GetAuthCodeTypeCall

func (m *Auth_CodeType) GetAuthCodeTypeCall() *TLAuthCodeTypeCall

func (*Auth_CodeType) GetAuthCodeTypeFlashCall

func (m *Auth_CodeType) GetAuthCodeTypeFlashCall() *TLAuthCodeTypeFlashCall

func (*Auth_CodeType) GetAuthCodeTypeSms

func (m *Auth_CodeType) GetAuthCodeTypeSms() *TLAuthCodeTypeSms

func (*Auth_CodeType) GetPayload

func (m *Auth_CodeType) GetPayload() isAuth_CodeType_Payload

func (*Auth_CodeType) ProtoMessage

func (*Auth_CodeType) ProtoMessage()

func (*Auth_CodeType) Reset

func (m *Auth_CodeType) Reset()

func (*Auth_CodeType) String

func (m *Auth_CodeType) String() string

func (*Auth_CodeType) XXX_OneofFuncs

func (*Auth_CodeType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Auth_CodeType_AuthCodeTypeCall

type Auth_CodeType_AuthCodeTypeCall struct {
	AuthCodeTypeCall *TLAuthCodeTypeCall `protobuf:"bytes,2,opt,name=auth_codeTypeCall,json=authCodeTypeCall,oneof"`
}

type Auth_CodeType_AuthCodeTypeFlashCall

type Auth_CodeType_AuthCodeTypeFlashCall struct {
	AuthCodeTypeFlashCall *TLAuthCodeTypeFlashCall `protobuf:"bytes,3,opt,name=auth_codeTypeFlashCall,json=authCodeTypeFlashCall,oneof"`
}

type Auth_CodeType_AuthCodeTypeSms

type Auth_CodeType_AuthCodeTypeSms struct {
	AuthCodeTypeSms *TLAuthCodeTypeSms `protobuf:"bytes,1,opt,name=auth_codeTypeSms,json=authCodeTypeSms,oneof"`
}

type Auth_SentCode

type Auth_SentCode struct {
	// Types that are valid to be assigned to Payload:
	//	*Auth_SentCode_AuthSentCode
	Payload isAuth_SentCode_Payload `protobuf_oneof:"payload"`
}

func (*Auth_SentCode) Descriptor

func (*Auth_SentCode) Descriptor() ([]byte, []int)

func (*Auth_SentCode) GetAuthSentCode

func (m *Auth_SentCode) GetAuthSentCode() *TLAuthSentCode

func (*Auth_SentCode) GetPayload

func (m *Auth_SentCode) GetPayload() isAuth_SentCode_Payload

func (*Auth_SentCode) ProtoMessage

func (*Auth_SentCode) ProtoMessage()

func (*Auth_SentCode) Reset

func (m *Auth_SentCode) Reset()

func (*Auth_SentCode) String

func (m *Auth_SentCode) String() string

func (*Auth_SentCode) XXX_OneofFuncs

func (*Auth_SentCode) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Auth_SentCodeType

type Auth_SentCodeType struct {
	// Types that are valid to be assigned to Payload:
	//	*Auth_SentCodeType_AuthSentCodeTypeApp
	//	*Auth_SentCodeType_AuthSentCodeTypeSms
	//	*Auth_SentCodeType_AuthSentCodeTypeCall
	//	*Auth_SentCodeType_AuthSentCodeTypeFlashCall
	Payload isAuth_SentCodeType_Payload `protobuf_oneof:"payload"`
}

func (*Auth_SentCodeType) Descriptor

func (*Auth_SentCodeType) Descriptor() ([]byte, []int)

func (*Auth_SentCodeType) GetAuthSentCodeTypeApp

func (m *Auth_SentCodeType) GetAuthSentCodeTypeApp() *TLAuthSentCodeTypeApp

func (*Auth_SentCodeType) GetAuthSentCodeTypeCall

func (m *Auth_SentCodeType) GetAuthSentCodeTypeCall() *TLAuthSentCodeTypeCall

func (*Auth_SentCodeType) GetAuthSentCodeTypeFlashCall

func (m *Auth_SentCodeType) GetAuthSentCodeTypeFlashCall() *TLAuthSentCodeTypeFlashCall

func (*Auth_SentCodeType) GetAuthSentCodeTypeSms

func (m *Auth_SentCodeType) GetAuthSentCodeTypeSms() *TLAuthSentCodeTypeSms

func (*Auth_SentCodeType) GetPayload

func (m *Auth_SentCodeType) GetPayload() isAuth_SentCodeType_Payload

func (*Auth_SentCodeType) ProtoMessage

func (*Auth_SentCodeType) ProtoMessage()

func (*Auth_SentCodeType) Reset

func (m *Auth_SentCodeType) Reset()

func (*Auth_SentCodeType) String

func (m *Auth_SentCodeType) String() string

func (*Auth_SentCodeType) XXX_OneofFuncs

func (*Auth_SentCodeType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Auth_SentCodeType_AuthSentCodeTypeApp

type Auth_SentCodeType_AuthSentCodeTypeApp struct {
	AuthSentCodeTypeApp *TLAuthSentCodeTypeApp `protobuf:"bytes,1,opt,name=auth_sentCodeTypeApp,json=authSentCodeTypeApp,oneof"`
}

type Auth_SentCodeType_AuthSentCodeTypeCall

type Auth_SentCodeType_AuthSentCodeTypeCall struct {
	AuthSentCodeTypeCall *TLAuthSentCodeTypeCall `protobuf:"bytes,3,opt,name=auth_sentCodeTypeCall,json=authSentCodeTypeCall,oneof"`
}

type Auth_SentCodeType_AuthSentCodeTypeFlashCall

type Auth_SentCodeType_AuthSentCodeTypeFlashCall struct {
	AuthSentCodeTypeFlashCall *TLAuthSentCodeTypeFlashCall `protobuf:"bytes,4,opt,name=auth_sentCodeTypeFlashCall,json=authSentCodeTypeFlashCall,oneof"`
}

type Auth_SentCodeType_AuthSentCodeTypeSms

type Auth_SentCodeType_AuthSentCodeTypeSms struct {
	AuthSentCodeTypeSms *TLAuthSentCodeTypeSms `protobuf:"bytes,2,opt,name=auth_sentCodeTypeSms,json=authSentCodeTypeSms,oneof"`
}

type Auth_SentCode_AuthSentCode

type Auth_SentCode_AuthSentCode struct {
	AuthSentCode *TLAuthSentCode `protobuf:"bytes,1,opt,name=auth_sentCode,json=authSentCode,oneof"`
}

type Bool

type Bool struct {
	// Types that are valid to be assigned to Payload:
	//	*Bool_BoolFalse
	//	*Bool_BoolTrue
	Payload isBool_Payload `protobuf_oneof:"payload"`
}

func (*Bool) Descriptor

func (*Bool) Descriptor() ([]byte, []int)

func (*Bool) GetBoolFalse

func (m *Bool) GetBoolFalse() *TLBoolFalse

func (*Bool) GetBoolTrue

func (m *Bool) GetBoolTrue() *TLBoolTrue

func (*Bool) GetPayload

func (m *Bool) GetPayload() isBool_Payload

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) Reset

func (m *Bool) Reset()

func (*Bool) String

func (m *Bool) String() string

func (*Bool) XXX_OneofFuncs

func (*Bool) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Bool_BoolFalse

type Bool_BoolFalse struct {
	BoolFalse *TLBoolFalse `protobuf:"bytes,1,opt,name=boolFalse,oneof"`
}

type Bool_BoolTrue

type Bool_BoolTrue struct {
	BoolTrue *TLBoolTrue `protobuf:"bytes,2,opt,name=boolTrue,oneof"`
}

type TLAuthCodeTypeCall

type TLAuthCodeTypeCall struct {
}

auth.codeTypeCall#741cd3e3 = auth.CodeType;

func (*TLAuthCodeTypeCall) Descriptor

func (*TLAuthCodeTypeCall) Descriptor() ([]byte, []int)

func (*TLAuthCodeTypeCall) ProtoMessage

func (*TLAuthCodeTypeCall) ProtoMessage()

func (*TLAuthCodeTypeCall) Reset

func (m *TLAuthCodeTypeCall) Reset()

func (*TLAuthCodeTypeCall) String

func (m *TLAuthCodeTypeCall) String() string

type TLAuthCodeTypeFlashCall

type TLAuthCodeTypeFlashCall struct {
}

auth.codeTypeFlashCall#226ccefb = auth.CodeType;

func (*TLAuthCodeTypeFlashCall) Descriptor

func (*TLAuthCodeTypeFlashCall) Descriptor() ([]byte, []int)

func (*TLAuthCodeTypeFlashCall) ProtoMessage

func (*TLAuthCodeTypeFlashCall) ProtoMessage()

func (*TLAuthCodeTypeFlashCall) Reset

func (m *TLAuthCodeTypeFlashCall) Reset()

func (*TLAuthCodeTypeFlashCall) String

func (m *TLAuthCodeTypeFlashCall) String() string

type TLAuthCodeTypeSms

type TLAuthCodeTypeSms struct {
}

auth.codeTypeSms#72a3158c = auth.CodeType;

func (*TLAuthCodeTypeSms) Descriptor

func (*TLAuthCodeTypeSms) Descriptor() ([]byte, []int)

func (*TLAuthCodeTypeSms) ProtoMessage

func (*TLAuthCodeTypeSms) ProtoMessage()

func (*TLAuthCodeTypeSms) Reset

func (m *TLAuthCodeTypeSms) Reset()

func (*TLAuthCodeTypeSms) String

func (m *TLAuthCodeTypeSms) String() string

type TLAuthSendCode

type TLAuthSendCode struct {
	Flags          int32  `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"`
	AllowFlashcall bool   `protobuf:"varint,2,opt,name=allow_flashcall,json=allowFlashcall" json:"allow_flashcall,omitempty"`
	PhoneNumber    string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber" json:"phone_number,omitempty"`
	CurrentNumber  *Bool  `protobuf:"bytes,4,opt,name=current_number,json=currentNumber" json:"current_number,omitempty"`
	ApiId          int32  `protobuf:"varint,5,opt,name=api_id,json=apiId" json:"api_id,omitempty"`
	ApiHash        string `protobuf:"bytes,6,opt,name=api_hash,json=apiHash" json:"api_hash,omitempty"`
}

auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode;

func (*TLAuthSendCode) Descriptor

func (*TLAuthSendCode) Descriptor() ([]byte, []int)

func (*TLAuthSendCode) GetAllowFlashcall

func (m *TLAuthSendCode) GetAllowFlashcall() bool

func (*TLAuthSendCode) GetApiHash

func (m *TLAuthSendCode) GetApiHash() string

func (*TLAuthSendCode) GetApiId

func (m *TLAuthSendCode) GetApiId() int32

func (*TLAuthSendCode) GetCurrentNumber

func (m *TLAuthSendCode) GetCurrentNumber() *Bool

func (*TLAuthSendCode) GetFlags

func (m *TLAuthSendCode) GetFlags() int32

func (*TLAuthSendCode) GetPhoneNumber

func (m *TLAuthSendCode) GetPhoneNumber() string

func (*TLAuthSendCode) ProtoMessage

func (*TLAuthSendCode) ProtoMessage()

func (*TLAuthSendCode) Reset

func (m *TLAuthSendCode) Reset()

func (*TLAuthSendCode) String

func (m *TLAuthSendCode) String() string

type TLAuthSentCode

type TLAuthSentCode struct {
	Flags           int32              `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"`
	PhoneRegistered bool               `protobuf:"varint,2,opt,name=phone_registered,json=phoneRegistered" json:"phone_registered,omitempty"`
	Type            *Auth_SentCodeType `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	PhoneCodeHash   string             `protobuf:"bytes,4,opt,name=phone_code_hash,json=phoneCodeHash" json:"phone_code_hash,omitempty"`
	NextType        *Auth_CodeType     `protobuf:"bytes,5,opt,name=next_type,json=nextType" json:"next_type,omitempty"`
	Timeout         int32              `protobuf:"varint,6,opt,name=timeout" json:"timeout,omitempty"`
}

auth.sentCode#5e002502 flags:# phone_registered:flags.0?true type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;

func (*TLAuthSentCode) Descriptor

func (*TLAuthSentCode) Descriptor() ([]byte, []int)

func (*TLAuthSentCode) GetFlags

func (m *TLAuthSentCode) GetFlags() int32

func (*TLAuthSentCode) GetNextType

func (m *TLAuthSentCode) GetNextType() *Auth_CodeType

func (*TLAuthSentCode) GetPhoneCodeHash

func (m *TLAuthSentCode) GetPhoneCodeHash() string

func (*TLAuthSentCode) GetPhoneRegistered

func (m *TLAuthSentCode) GetPhoneRegistered() bool

func (*TLAuthSentCode) GetTimeout

func (m *TLAuthSentCode) GetTimeout() int32

func (*TLAuthSentCode) GetType

func (m *TLAuthSentCode) GetType() *Auth_SentCodeType

func (*TLAuthSentCode) ProtoMessage

func (*TLAuthSentCode) ProtoMessage()

func (*TLAuthSentCode) Reset

func (m *TLAuthSentCode) Reset()

func (*TLAuthSentCode) String

func (m *TLAuthSentCode) String() string

type TLAuthSentCodeTypeApp

type TLAuthSentCodeTypeApp struct {
	Length int32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
}

auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType;

func (*TLAuthSentCodeTypeApp) Descriptor

func (*TLAuthSentCodeTypeApp) Descriptor() ([]byte, []int)

func (*TLAuthSentCodeTypeApp) GetLength

func (m *TLAuthSentCodeTypeApp) GetLength() int32

func (*TLAuthSentCodeTypeApp) ProtoMessage

func (*TLAuthSentCodeTypeApp) ProtoMessage()

func (*TLAuthSentCodeTypeApp) Reset

func (m *TLAuthSentCodeTypeApp) Reset()

func (*TLAuthSentCodeTypeApp) String

func (m *TLAuthSentCodeTypeApp) String() string

type TLAuthSentCodeTypeCall

type TLAuthSentCodeTypeCall struct {
	Length int32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
}

auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType;

func (*TLAuthSentCodeTypeCall) Descriptor

func (*TLAuthSentCodeTypeCall) Descriptor() ([]byte, []int)

func (*TLAuthSentCodeTypeCall) GetLength

func (m *TLAuthSentCodeTypeCall) GetLength() int32

func (*TLAuthSentCodeTypeCall) ProtoMessage

func (*TLAuthSentCodeTypeCall) ProtoMessage()

func (*TLAuthSentCodeTypeCall) Reset

func (m *TLAuthSentCodeTypeCall) Reset()

func (*TLAuthSentCodeTypeCall) String

func (m *TLAuthSentCodeTypeCall) String() string

type TLAuthSentCodeTypeFlashCall

type TLAuthSentCodeTypeFlashCall struct {
	Pattern string `protobuf:"bytes,1,opt,name=pattern" json:"pattern,omitempty"`
}

auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType;

func (*TLAuthSentCodeTypeFlashCall) Descriptor

func (*TLAuthSentCodeTypeFlashCall) Descriptor() ([]byte, []int)

func (*TLAuthSentCodeTypeFlashCall) GetPattern

func (m *TLAuthSentCodeTypeFlashCall) GetPattern() string

func (*TLAuthSentCodeTypeFlashCall) ProtoMessage

func (*TLAuthSentCodeTypeFlashCall) ProtoMessage()

func (*TLAuthSentCodeTypeFlashCall) Reset

func (m *TLAuthSentCodeTypeFlashCall) Reset()

func (*TLAuthSentCodeTypeFlashCall) String

func (m *TLAuthSentCodeTypeFlashCall) String() string

type TLAuthSentCodeTypeSms

type TLAuthSentCodeTypeSms struct {
	Length int32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
}

auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType;

func (*TLAuthSentCodeTypeSms) Descriptor

func (*TLAuthSentCodeTypeSms) Descriptor() ([]byte, []int)

func (*TLAuthSentCodeTypeSms) GetLength

func (m *TLAuthSentCodeTypeSms) GetLength() int32

func (*TLAuthSentCodeTypeSms) ProtoMessage

func (*TLAuthSentCodeTypeSms) ProtoMessage()

func (*TLAuthSentCodeTypeSms) Reset

func (m *TLAuthSentCodeTypeSms) Reset()

func (*TLAuthSentCodeTypeSms) String

func (m *TLAuthSentCodeTypeSms) String() string

type TLBoolFalse

type TLBoolFalse struct {
}

boolFalse#bc799737 = Bool;

func (*TLBoolFalse) Descriptor

func (*TLBoolFalse) Descriptor() ([]byte, []int)

func (*TLBoolFalse) ProtoMessage

func (*TLBoolFalse) ProtoMessage()

func (*TLBoolFalse) Reset

func (m *TLBoolFalse) Reset()

func (*TLBoolFalse) String

func (m *TLBoolFalse) String() string

type TLBoolTrue

type TLBoolTrue struct {
}

boolTrue#997275b5 = Bool;

func (*TLBoolTrue) Descriptor

func (*TLBoolTrue) Descriptor() ([]byte, []int)

func (*TLBoolTrue) ProtoMessage

func (*TLBoolTrue) ProtoMessage()

func (*TLBoolTrue) Reset

func (m *TLBoolTrue) Reset()

func (*TLBoolTrue) String

func (m *TLBoolTrue) String() string

type TLTrue

type TLTrue struct {
}

true#3fedd339 = True;

func (*TLTrue) Descriptor

func (*TLTrue) Descriptor() ([]byte, []int)

func (*TLTrue) ProtoMessage

func (*TLTrue) ProtoMessage()

func (*TLTrue) Reset

func (m *TLTrue) Reset()

func (*TLTrue) String

func (m *TLTrue) String() string

Jump to

Keyboard shortcuts

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