protoface

package
v0.0.0-...-6f0ee80 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials interface {
	ProtoBuff
	IGetUser() string
	IGetPassword() string
	IGetBase64() string
}

type Function

type Function interface {
	ProtoBuff
	IGetName() string
	IGetDescription() string
	IGetFilename() string
	IGetLineNumber() int32
	IGetNamespace() string
	IGetScopeTypeId() int32
	IGetScopeType() string
	IGetReturnTypeId() int32
	IGetReturnType() string
	IGetOpensTypeId() int32
	IGetOpensType() string
	IGetBuiltIn() bool
	IGetNthArg(index int) Function_Argument
	ISetNthArg(index int, value Function_Argument)
	INumArgs() int
	IGetInstruction() Instruction

	Stub(pkg Package) string
	FullSignature(pkg Package) string
	BaseSignature(pkg Package) string
	Clone() Function
	NameString() string
	ReturnTypeString(pkg Package) string
	ScopeTypeString(pkg Package) string
	OpensTypeString(pkg Package) string
	DebugInfo(pkg Package) string
	RelocateCallsBy(offset int)
	RelocateTypes(relocations map[int]int)
}

type Function_Argument

type Function_Argument interface {
	ProtoBuff
	IGetTypeId() int32
	IGetTypeString() string
	IGetName() string
}

type Function_Array

type Function_Array interface {
	ProtoBuff
	IGetNthFunction(index int) Function
	ISetNthFunction(index int, value Function)
}

type Instruction

type Instruction interface {
	ProtoBuff
	IGetType() int32
	IGetValue() string
	IGetObjectId() int32
	IGetNthChild(index int) Instruction
	ISetNthChild(index int, value Instruction)
	INumChildren() int
	IGetNthArgument(index int) Instruction
	ISetNthArgument(index int, value Instruction)
	INumArgs() int
	IGetFunctionId() int32
	IGetLineNumber() int32
	IGetYieldTypeId() int32
	IGetIsValid() bool
	IGetNamespace() string
	IGetTypeQualifier() string
	IGetIsUserCalled() bool

	// Iterate(f func(Instruction))
	// IterateAll(f func(Instruction))
	GetFunction(pkg Package) Function
	Namespaces() []string
}

type Package

type Package interface {
	ProtoBuff
	IGetName() string
	IGetNthFunction(index int) Function
	ISetNthFunction(index int, value Function)
	IGetFunctions() []Function
	IGetNthType(index int) Type
	ISetNthType(index int, value Type)
	IGetTypes() []Type
	IGetDependencies() []string
	IGetPath() string

	GetTypeId(string) int
	GetTypeName(int32) string
	GetProtoTypeId(*string) *int32
	FindDescendantType(int32) int
	AncestorOf(int32, int32) bool
}

type ProtoBuff

type ProtoBuff interface {
	Reset()
	String() string
	ProtoMessage()
}

type RewriteRule

type RewriteRule interface {
	ProtoBuff
	IGetProxy() string
	IGetUpstream() string
	IGetDirection() int32
	IGetCookieDomain() string
}

type ScriptObject

type ScriptObject interface {
	ProtoBuff
	IGetName() string
	IGetRoot() Instruction
	IGetNthFunction(index int) Function
	ISetNthFunction(index int, value Function)
	IGetScopeTypeId() int32
	IGetLinked() bool
	IGetModule() string
	IGetLayer() string

	Imports() []string
}

type Slug

type Slug interface {
	ProtoBuff
	IGetName() string
	IGetVersion() string
	IGetNthTransformer(index int) Transform
	ISetNthTransformer(index int, value Transform)
	IGetJavaScript() string
	ISetJavaScript(string)
	IGetConfig() string
	ISetConfig(string)
	IGetNthRrule(index int) RewriteRule
	ISetNthRrule(index int, value RewriteRule)
	IGetRrules() []RewriteRule
	IGetSslWhitelist() []string
	IGetCredentials() Credentials
	IGetActiveLayers() []string

	WriteFile(string) error
	FindInstruction(string, int) int
}

type SlugInfo

type SlugInfo interface {
	Reset()
	IGetSlug() Slug
	IGetSize() int
	Size() int
	IGetTimestamp() time.Time
	IGetCustomer() string
	IGetProject() string
	IGetPath() string
}

type Transform

type Transform interface {
	ProtoBuff
	// GetObjects() []*ScriptObject
	IGetNthObject(n int) ScriptObject
	ISetNthObject(n int, s ScriptObject)
	IGetPkg() Package
	IGetLayers() string
}

type Type

type Type interface {
	ProtoBuff
	IGetName() string
	IGetImplements() int32
}

Jump to

Keyboard shortcuts

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