types

package
v0.0.0-...-c7b31ab Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DifferenceStats

type DifferenceStats struct {
	MainApi SchemeStats
	E2EApi  SchemeStats
}

type Parameter

type Parameter struct {
	Name string
	Type string
}

type PatchInfo

type PatchInfo struct {
	OldConstructor     string `json:"old_constructor"`
	PatchedConstructor string `json:"new_constructor"`
}

type PatchOS

type PatchOS string
const (
	AndroidPatch  PatchOS = "android"
	IOSPatch      PatchOS = "ios"
	TDesktopPatch PatchOS = "tdesktop"
	TDLibPatch    PatchOS = "tdlib"
)

type RawTLScheme

type RawTLScheme struct {
	TLScheme
	Layer  int
	IsSync bool
}

type ReleasedConstructor

type ReleasedConstructor struct {
	ID string `json:"id"`
}

type ReleasedLayer

type ReleasedLayer struct {
	Constructors []ReleasedConstructor `json:"constructors"`
	Methods      []ReleasedConstructor `json:"methods"`
}

type SchemeStats

type SchemeStats struct {
	Constructors   Stats
	Methods        Stats
	Total          int
	TotalAdditions int
	TotalChanges   int
	TotalDeletions int
}

type Stats

type Stats struct {
	Additions int
	Changes   int
	Deletions int
}

type TLBase

type TLBase struct {
	ID          string      `json:"id"`
	Params      []Parameter `json:"params"`
	Type        string      `json:"type"`
	Layer       int         `json:"layer"`
	ForceSecret bool        `json:"force_secret"`
	Namespace   string      `json:"-"`
}

func (*TLBase) Clone

func (tl *TLBase) Clone() TLBase

func (*TLBase) Constructor

func (tl *TLBase) Constructor() string

func (*TLBase) FileNamespace

func (tl *TLBase) FileNamespace() string

func (*TLBase) GetLayer

func (tl *TLBase) GetLayer() int

func (*TLBase) IsSecret

func (tl *TLBase) IsSecret() bool

func (*TLBase) Parameters

func (tl *TLBase) Parameters() []Parameter

func (*TLBase) Result

func (tl *TLBase) Result() string

func (*TLBase) SetConstructor

func (tl *TLBase) SetConstructor(constructor string)

func (*TLBase) SetLayer

func (tl *TLBase) SetLayer(layer int)

func (*TLBase) SetParameters

func (tl *TLBase) SetParameters(params []Parameter)

func (*TLBase) SetResult

func (tl *TLBase) SetResult(result string)

type TLConstructor

type TLConstructor struct {
	TLBase
	Predicate string `json:"predicate"`
}

func (*TLConstructor) IsMethod

func (tl *TLConstructor) IsMethod() bool

func (*TLConstructor) Package

func (tl *TLConstructor) Package() string

type TLFullDifferences

type TLFullDifferences struct {
	MainApi *TLSchemeDifferences
	E2EApi  *TLSchemeDifferences
}

type TLFullScheme

type TLFullScheme struct {
	MainApi TLScheme `json:"main_api"`
	E2EApi  TLScheme `json:"e2e_api"`
	Layer   int      `json:"layer"`
	IsSync  bool     `json:"-"`
}

type TLInterface

type TLInterface interface {
	Constructor() string
	SetConstructor(string)
	Package() string
	Parameters() []Parameter
	SetParameters([]Parameter)
	Result() string
	SetResult(string)
	IsMethod() bool
	GetLayer() int
	SetLayer(int)
	IsSecret() bool
}

type TLMethod

type TLMethod struct {
	TLBase
	Method string `json:"method"`
}

func (*TLMethod) IsMethod

func (tl *TLMethod) IsMethod() bool

func (*TLMethod) Package

func (tl *TLMethod) Package() string

type TLObjDifferences

type TLObjDifferences struct {
	Object        TLInterface
	IsNew         bool
	IsDeleted     bool
	ChangedResult *TlDifferentResult
	NewFields     []string
	ChangedFields []TlDifferentField
	RemovedFields []string
}

type TLRemoteScheme

type TLRemoteScheme struct {
	TLScheme
	Layer int
}

type TLScheme

type TLScheme struct {
	Constructors []*TLConstructor `json:"constructors"`
	Methods      []*TLMethod      `json:"methods"`
}

func (TLScheme) GetConstructors

func (scheme TLScheme) GetConstructors() []TLInterface

func (TLScheme) GetMethods

func (scheme TLScheme) GetMethods() []TLInterface

type TLSchemeDifferences

type TLSchemeDifferences struct {
	MethodsDifference      []TLObjDifferences
	ConstructorsDifference []TLObjDifferences
}

func (TLSchemeDifferences) GetConstructors

func (scheme TLSchemeDifferences) GetConstructors() []TLInterface

func (TLSchemeDifferences) GetMethods

func (scheme TLSchemeDifferences) GetMethods() []TLInterface

type TLSchemeInterface

type TLSchemeInterface interface {
	GetConstructors() []TLInterface
	GetMethods() []TLInterface
}

type TlDifferentField

type TlDifferentField struct {
	Name    string
	OldType string
	NewType string
}

type TlDifferentResult

type TlDifferentResult struct {
	OldType string
	NewType string
}

Jump to

Keyboard shortcuts

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