scheme

package
v0.0.0-...-3a43c6c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOverrides

func ApplyOverrides(scheme *types.TLFullScheme) int

func FixFieldNames

func FixFieldNames(scheme *types.TLFullScheme) int

func FixNamespaces

func FixNamespaces(scheme *types.TLFullScheme, previous ...*types.TLFullScheme) int

func GetDiffs

func GetDiffs(old, new *types.TLFullScheme) *types.TLFullDifferences

func GetE2EScheme

func GetE2EScheme() (*types.TLRemoteScheme, error)

func GetScheme

func GetScheme(branch string) (*types.TLRemoteScheme, error)

func GetTDLibScheme

func GetTDLibScheme() (*types.TLRemoteScheme, error)

func KeepObjects

func KeepObjects(scheme, published *types.TLFullScheme, ids map[string]bool) int

func ParseConstructor

func ParseConstructor(constructor string) string

func ParseTLScheme

func ParseTLScheme(rawScheme string) (*types.TLRemoteScheme, error)

func RemoveObjects

func RemoveObjects(scheme *types.TLFullScheme, ids map[string]bool) int

func ReverseConstructor

func ReverseConstructor(hexString string) string

func ToString

func ToString(scheme types.TLSchemeInterface, layer int, withComments bool) string

Types

type Client

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

func New

func New(database *db.DB) *Client

func (*Client) InvalidateCaches

func (ctx *Client) InvalidateCaches()

func (*Client) MergeRemote

func (ctx *Client) MergeRemote(remoteScheme *types.TLRemoteScheme, patchOs types.PatchOS, isSync, remoteOrder bool, upstream func(isE2E bool) (*types.TLRemoteScheme, error)) (*types.TLFullScheme, error)

func (*Client) MergeSmartUpstream

func (ctx *Client) MergeSmartUpstream(rawScheme *types.RawTLScheme, patchOs types.PatchOS, branch string) (*types.TLFullScheme, error)

func (*Client) MergeUpstream

func (ctx *Client) MergeUpstream(rawScheme *types.RawTLScheme, patchOs types.PatchOS, remoteOrder bool, upstream func(isE2E bool) (*types.TLRemoteScheme, error)) (*types.TLFullScheme, error)

func (*Client) RefreshReleasedLayers

func (ctx *Client) RefreshReleasedLayers() (latestVersion int, forceNoUpdate bool, err error)

func (*Client) UpdateUpstreamCache

func (ctx *Client) UpdateUpstreamCache(source string, localScheme *types.TLRemoteScheme, branch string) error

type Problem

type Problem struct {
	File   string
	Line   int
	Source string
	Reason string
	Fatal  bool
}

func FatalProblems

func FatalProblems(problems []Problem) []Problem

func Validate

func Validate(scheme *types.TLFullScheme) []Problem

func ValidateFiles

func ValidateFiles(files []TLFile) []Problem

func (Problem) String

func (p Problem) String() string

type TLFile

type TLFile struct {
	Name string
	Text string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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