tgtrace

package
v0.0.0-...-87e9d67 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tgtrace is generated from gotd tracing schema.

Index

Constants

View Source
const InvokeWithTraceRequestTypeID = 0x104be9ab

InvokeWithTraceRequestTypeID is TL type id of InvokeWithTraceRequest.

Variables

This section is empty.

Functions

func ClassConstructorsMap

func ClassConstructorsMap() map[string][]uint32

ClassConstructorsMap maps class schema name to constructors type ids.

func NamesMap

func NamesMap() map[string]uint32

NamesMap returns mapping from type names to TL type ids.

func TypesConstructorMap

func TypesConstructorMap() map[uint32]func() bin.Object

TypesConstructorMap maps type ids to constructors.

func TypesMap

func TypesMap() map[uint32]string

TypesMap returns mapping from type ids to TL type names.

Types

type InvokeWithTraceRequest

type InvokeWithTraceRequest struct {
	// Flags field of InvokeWithTraceRequest.
	Flags bin.Fields
	// TraceParent field of InvokeWithTraceRequest.
	//
	// Use SetTraceParent and GetTraceParent helpers.
	TraceParent string
	// TraceState field of InvokeWithTraceRequest.
	//
	// Use SetTraceState and GetTraceState helpers.
	TraceState string
	// Baggage field of InvokeWithTraceRequest.
	//
	// Use SetBaggage and GetBaggage helpers.
	Baggage string
	// Query field of InvokeWithTraceRequest.
	Query bin.Object
}

InvokeWithTraceRequest represents TL type `invokeWithTrace#104be9ab`.

func (*InvokeWithTraceRequest) Decode

func (i *InvokeWithTraceRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InvokeWithTraceRequest) DecodeBare

func (i *InvokeWithTraceRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*InvokeWithTraceRequest) Encode

func (i *InvokeWithTraceRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InvokeWithTraceRequest) EncodeBare

func (i *InvokeWithTraceRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*InvokeWithTraceRequest) GetBaggage

func (i *InvokeWithTraceRequest) GetBaggage() (value string, ok bool)

GetBaggage returns value of Baggage conditional field and boolean which is true if field was set.

func (*InvokeWithTraceRequest) GetQuery

func (i *InvokeWithTraceRequest) GetQuery() (value bin.Object)

GetQuery returns value of Query field.

func (*InvokeWithTraceRequest) GetTraceParent

func (i *InvokeWithTraceRequest) GetTraceParent() (value string, ok bool)

GetTraceParent returns value of TraceParent conditional field and boolean which is true if field was set.

func (*InvokeWithTraceRequest) GetTraceState

func (i *InvokeWithTraceRequest) GetTraceState() (value string, ok bool)

GetTraceState returns value of TraceState conditional field and boolean which is true if field was set.

func (*InvokeWithTraceRequest) SetBaggage

func (i *InvokeWithTraceRequest) SetBaggage(value string)

SetBaggage sets value of Baggage conditional field.

func (*InvokeWithTraceRequest) SetFlags

func (i *InvokeWithTraceRequest) SetFlags()

SetFlags sets flags for non-zero fields.

func (*InvokeWithTraceRequest) SetTraceParent

func (i *InvokeWithTraceRequest) SetTraceParent(value string)

SetTraceParent sets value of TraceParent conditional field.

func (*InvokeWithTraceRequest) SetTraceState

func (i *InvokeWithTraceRequest) SetTraceState(value string)

SetTraceState sets value of TraceState conditional field.

func (*InvokeWithTraceRequest) String

func (i *InvokeWithTraceRequest) String() string

String implements fmt.Stringer.

func (*InvokeWithTraceRequest) TypeID

func (*InvokeWithTraceRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*InvokeWithTraceRequest) TypeInfo

func (i *InvokeWithTraceRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*InvokeWithTraceRequest) TypeName

func (*InvokeWithTraceRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*InvokeWithTraceRequest) Zero

func (i *InvokeWithTraceRequest) Zero() bool

Jump to

Keyboard shortcuts

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