Documentation ¶
Index ¶
- func CalculateCRC32(name, params, restype string) uint32
- func IsBuiltInType(t Type) bool
- func IsBuiltInTypeByName(n string) bool
- type BoolType
- type BuiltInVectorType
- type BytesType
- type Constructor
- type CustomType
- type DoubleType
- type FlagsType
- type Function
- type Int128Type
- type Int256Type
- type IntType
- type LongType
- type MTProtoSchemas
- type MTProtoSchemasFixed
- type Param
- type Schemas
- type StringType
- type SubFlagsType
- type TVectorType
- type TemplateType
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateCRC32 ¶
func IsBuiltInType ¶
func IsBuiltInTypeByName ¶
Types ¶
type BoolType ¶
func (BoolType) OriginName ¶
type BuiltInVectorType ¶
type BuiltInVectorType struct {
Type
}
func (BuiltInVectorType) GetGoType ¶
func (this BuiltInVectorType) GetGoType() string
func (BuiltInVectorType) Name ¶
func (this BuiltInVectorType) Name() string
func (BuiltInVectorType) OriginName ¶
func (this BuiltInVectorType) OriginName() string
func (BuiltInVectorType) TypeName ¶
func (this BuiltInVectorType) TypeName() string
type BytesType ¶
func (BytesType) OriginName ¶
type Constructor ¶
type Constructor struct { Predicate string Id int32 TypeId string //PrmsList []string //Prms map[string]Type //HasFlags bool //ConditionsList []string //Conditions map[string]string //TrivialConditions []string ParamList []Param RawParamList []string BaseType Type RawBaseType string Line string }
typesDict[restype].append([name, typeid, prmsList, prms, hasFlags, conditionsList, conditions, trivialConditions, line]);
func NewConstructor ¶
func NewConstructor(id int32, predicate, params, typeName string) Constructor
func (Constructor) GetGoType ¶
func (this Constructor) GetGoType() string
func (Constructor) Name ¶
func (this Constructor) Name() string
func (Constructor) OriginName ¶
func (this Constructor) OriginName() string
func (Constructor) TypeName ¶
func (this Constructor) TypeName() string
type CustomType ¶
type CustomType struct {
CustomName string
}
func MakeCustomType ¶
func MakeCustomType(restype string) CustomType
func (CustomType) GetGoType ¶
func (this CustomType) GetGoType() string
func (CustomType) Name ¶
func (this CustomType) Name() string
func (CustomType) OriginName ¶
func (this CustomType) OriginName() string
func (CustomType) TypeName ¶
func (this CustomType) TypeName() string
type DoubleType ¶
func (DoubleType) GetGoType ¶
func (this DoubleType) GetGoType() string
func (DoubleType) Name ¶
func (this DoubleType) Name() string
func (DoubleType) OriginName ¶
func (this DoubleType) OriginName() string
func (DoubleType) TypeName ¶
func (this DoubleType) TypeName() string
type FlagsType ¶
type FlagsType struct {
Mask string
}
/////////////////////////////////////////////////////////////////////////////
func (FlagsType) OriginName ¶
type Function ¶
type Function struct { Method string Id int32 TypeId string //PrmsList []string //Prms map[string]Type //HasFlags bool //ConditionsList []string //Conditions map[string]string //TrivialConditions []string ParamList []Param RawParamList []string ResType Type RawResType string Line string }
funcsDict[restype].append([name, typeid, prmsList, prms, hasFlags, conditionsList, conditions, trivialConditions, line]);
func NewFunction ¶
type Int128Type ¶
func (Int128Type) GetGoType ¶
func (this Int128Type) GetGoType() string
func (Int128Type) Name ¶
func (this Int128Type) Name() string
func (Int128Type) OriginName ¶
func (this Int128Type) OriginName() string
func (Int128Type) TypeName ¶
func (this Int128Type) TypeName() string
type Int256Type ¶
func (Int256Type) GetGoType ¶
func (this Int256Type) GetGoType() string
func (Int256Type) Name ¶
func (this Int256Type) Name() string
func (Int256Type) OriginName ¶
func (this Int256Type) OriginName() string
func (Int256Type) TypeName ¶
func (this Int256Type) TypeName() string
type IntType ¶
type IntType struct { Mask string // contains filtered or unexported fields }
func (IntType) OriginName ¶
type LongType ¶
type LongType struct { Mask string // contains filtered or unexported fields }
func (LongType) OriginName ¶
type MTProtoSchemas ¶
type MTProtoSchemas struct { Name string Layer string // layer /////////////////// Layer cons LayerCons *Schemas /// Authorization key creation Handshake *Schemas ////////////// System messages Transport *Schemas ///////// Main application API Sync *Schemas ///////// Business application API Business *Schemas }
func NewMTProtoSchemas ¶
func NewMTProtoSchemas(name string, layer string) *MTProtoSchemas
func Parse ¶
func Parse(filePaths []string, name, layer string) (mtProtoSchemas *MTProtoSchemas, err error)
func (*MTProtoSchemas) GetSchemas ¶
func (this *MTProtoSchemas) GetSchemas(schemaType string) *Schemas
type MTProtoSchemasFixed ¶
type MTProtoSchemasFixed struct { Name string Layer string // layer /////////////////// Layer cons LayerCons Schemas /// Authorization key creation Handshake Schemas ////////////// System messages Transport Schemas ///////// Main application API Sync Schemas ///////// Business application API Business Schemas }
type Schemas ¶
type Schemas struct { Name string Layer string // layer TypeMap map[string]Type ConstructorList []Constructor FunctionList []Function }
///////////////// Layer cons
func NewSchemas ¶
type StringType ¶
func (StringType) GetGoType ¶
func (this StringType) GetGoType() string
func (StringType) Name ¶
func (this StringType) Name() string
func (StringType) OriginName ¶
func (this StringType) OriginName() string
func (StringType) TypeName ¶
func (this StringType) TypeName() string
type SubFlagsType ¶
func (SubFlagsType) GetGoType ¶
func (this SubFlagsType) GetGoType() string
func (SubFlagsType) Name ¶
func (this SubFlagsType) Name() string
func (SubFlagsType) OriginName ¶
func (this SubFlagsType) OriginName() string
func (SubFlagsType) TypeName ¶
func (this SubFlagsType) TypeName() string
type TVectorType ¶
type TVectorType struct {
Type
}
func (TVectorType) GetGoType ¶
func (this TVectorType) GetGoType() string
func (TVectorType) Name ¶
func (this TVectorType) Name() string
func (TVectorType) OriginName ¶
func (this TVectorType) OriginName() string
func (TVectorType) TypeName ¶
func (this TVectorType) TypeName() string
type TemplateType ¶
type TemplateType struct { }
////////////////////////////////////////////////////////////////////////
func (TemplateType) GetGoType ¶
func (this TemplateType) GetGoType() string
func (TemplateType) Name ¶
func (this TemplateType) Name() string
func (TemplateType) OriginName ¶
func (this TemplateType) OriginName() string
func (TemplateType) TypeName ¶
func (this TemplateType) TypeName() string
Click to show internal directories.
Click to hide internal directories.