Documentation ¶
Index ¶
- type AclCidr
- type AclDeclaration
- type AddStatement
- type BackendDeclaration
- type BackendProbeObject
- type BackendProperty
- type BlockStatement
- type Boolean
- type CallStatement
- type Comment
- type Comments
- type DeclareStatement
- type DirectorBackendObject
- type DirectorDeclaration
- type DirectorProperty
- type ErrorStatement
- type EsiStatement
- type Expression
- type Float
- type FunctionCallExpression
- type FunctionCallStatement
- type GotoDestinationStatement
- type GotoStatement
- type GroupedExpression
- type IP
- type Ident
- type IfExpression
- type IfStatement
- type ImportStatement
- type IncludeStatement
- type InfixExpression
- type Integer
- type LogStatement
- type Meta
- type Node
- type Operator
- type PenaltyboxDeclaration
- type PrefixExpression
- type RTime
- type RatecounterDeclaration
- type RemoveStatement
- type RestartStatement
- type ReturnStatement
- type SetStatement
- type Statement
- type String
- type SubroutineDeclaration
- type SyntheticBase64Statement
- type SyntheticStatement
- type TableDeclaration
- type TableProperty
- type UnsetStatement
- type VCL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclDeclaration ¶
func (*AclDeclaration) GetMeta ¶ added in v0.0.7
func (a *AclDeclaration) GetMeta() *Meta
func (*AclDeclaration) String ¶
func (a *AclDeclaration) String() string
type AddStatement ¶
type AddStatement struct { *Meta Ident *Ident Operator *Operator Value Expression }
func (*AddStatement) GetMeta ¶ added in v0.0.7
func (a *AddStatement) GetMeta() *Meta
func (*AddStatement) String ¶
func (a *AddStatement) String() string
type BackendDeclaration ¶
type BackendDeclaration struct { *Meta Name *Ident Properties []*BackendProperty }
func (*BackendDeclaration) GetMeta ¶ added in v0.0.7
func (b *BackendDeclaration) GetMeta() *Meta
func (*BackendDeclaration) String ¶
func (b *BackendDeclaration) String() string
type BackendProbeObject ¶
type BackendProbeObject struct { *Meta Values []*BackendProperty }
func (*BackendProbeObject) GetMeta ¶ added in v0.0.7
func (o *BackendProbeObject) GetMeta() *Meta
func (*BackendProbeObject) String ¶
func (o *BackendProbeObject) String() string
type BackendProperty ¶
type BackendProperty struct { *Meta Key *Ident Value Expression }
func (*BackendProperty) GetMeta ¶ added in v0.0.7
func (p *BackendProperty) GetMeta() *Meta
func (*BackendProperty) String ¶
func (p *BackendProperty) String() string
type BlockStatement ¶
func (*BlockStatement) GetMeta ¶ added in v0.0.7
func (b *BlockStatement) GetMeta() *Meta
func (*BlockStatement) String ¶
func (b *BlockStatement) String() string
type CallStatement ¶
func (*CallStatement) GetMeta ¶ added in v0.0.7
func (c *CallStatement) GetMeta() *Meta
func (*CallStatement) String ¶
func (c *CallStatement) String() string
type DeclareStatement ¶
func (*DeclareStatement) GetMeta ¶ added in v0.0.7
func (d *DeclareStatement) GetMeta() *Meta
func (*DeclareStatement) String ¶
func (d *DeclareStatement) String() string
type DirectorBackendObject ¶
type DirectorBackendObject struct { *Meta Values []*DirectorProperty }
func (*DirectorBackendObject) GetMeta ¶ added in v0.0.7
func (d *DirectorBackendObject) GetMeta() *Meta
func (*DirectorBackendObject) String ¶
func (d *DirectorBackendObject) String() string
type DirectorDeclaration ¶
type DirectorDeclaration struct { *Meta Name *Ident DirectorType *Ident Properties []Expression }
func (*DirectorDeclaration) GetMeta ¶ added in v0.0.7
func (d *DirectorDeclaration) GetMeta() *Meta
func (*DirectorDeclaration) String ¶
func (d *DirectorDeclaration) String() string
type DirectorProperty ¶
type DirectorProperty struct { *Meta Key *Ident Value Expression }
func (*DirectorProperty) GetMeta ¶ added in v0.0.7
func (d *DirectorProperty) GetMeta() *Meta
func (*DirectorProperty) String ¶
func (d *DirectorProperty) String() string
type ErrorStatement ¶
type ErrorStatement struct { *Meta Code Expression Argument Expression }
func (*ErrorStatement) GetMeta ¶ added in v0.0.7
func (e *ErrorStatement) GetMeta() *Meta
func (*ErrorStatement) String ¶
func (e *ErrorStatement) String() string
type EsiStatement ¶
type EsiStatement struct {
*Meta
}
func (*EsiStatement) GetMeta ¶ added in v0.0.7
func (e *EsiStatement) GetMeta() *Meta
func (*EsiStatement) String ¶
func (e *EsiStatement) String() string
type Expression ¶
type FunctionCallExpression ¶
type FunctionCallExpression struct { *Meta Function *Ident Arguments []Expression }
func (*FunctionCallExpression) GetMeta ¶ added in v0.0.7
func (f *FunctionCallExpression) GetMeta() *Meta
func (*FunctionCallExpression) String ¶
func (f *FunctionCallExpression) String() string
type FunctionCallStatement ¶ added in v0.9.3
type FunctionCallStatement struct { *Meta Function *Ident Arguments []Expression }
func (*FunctionCallStatement) GetMeta ¶ added in v0.9.3
func (fc *FunctionCallStatement) GetMeta() *Meta
func (*FunctionCallStatement) String ¶ added in v0.9.3
func (fc *FunctionCallStatement) String() string
type GotoDestinationStatement ¶ added in v0.9.3
func (*GotoDestinationStatement) GetMeta ¶ added in v0.9.3
func (gd *GotoDestinationStatement) GetMeta() *Meta
func (*GotoDestinationStatement) String ¶ added in v0.9.3
func (gd *GotoDestinationStatement) String() string
type GotoStatement ¶ added in v0.9.3
func (*GotoStatement) GetMeta ¶ added in v0.9.3
func (g *GotoStatement) GetMeta() *Meta
func (*GotoStatement) String ¶ added in v0.9.3
func (g *GotoStatement) String() string
type GroupedExpression ¶
type GroupedExpression struct { *Meta Right Expression }
func (*GroupedExpression) GetMeta ¶ added in v0.0.7
func (g *GroupedExpression) GetMeta() *Meta
func (*GroupedExpression) String ¶
func (g *GroupedExpression) String() string
type IfExpression ¶
type IfExpression struct { *Meta Condition Expression Consequence Expression Alternative Expression }
func (*IfExpression) GetMeta ¶ added in v0.0.7
func (i *IfExpression) GetMeta() *Meta
func (*IfExpression) String ¶
func (i *IfExpression) String() string
type IfStatement ¶
type IfStatement struct { *Meta Condition Expression Consequence *BlockStatement Another []*IfStatement Alternative *BlockStatement AlternativeComments Comments }
func (*IfStatement) GetMeta ¶ added in v0.0.7
func (i *IfStatement) GetMeta() *Meta
func (*IfStatement) String ¶
func (i *IfStatement) String() string
type ImportStatement ¶
func (*ImportStatement) GetMeta ¶ added in v0.0.7
func (i *ImportStatement) GetMeta() *Meta
func (*ImportStatement) String ¶
func (i *ImportStatement) String() string
type IncludeStatement ¶
func (*IncludeStatement) GetMeta ¶ added in v0.0.7
func (i *IncludeStatement) GetMeta() *Meta
func (*IncludeStatement) String ¶
func (i *IncludeStatement) String() string
type InfixExpression ¶
type InfixExpression struct { *Meta Left Expression Operator string Right Expression }
func (*InfixExpression) GetMeta ¶ added in v0.0.7
func (i *InfixExpression) GetMeta() *Meta
func (*InfixExpression) String ¶
func (i *InfixExpression) String() string
type LogStatement ¶
type LogStatement struct { *Meta Value Expression }
func (*LogStatement) GetMeta ¶ added in v0.0.7
func (l *LogStatement) GetMeta() *Meta
func (*LogStatement) String ¶
func (l *LogStatement) String() string
type Meta ¶ added in v0.0.7
Meta struct of all nodes
func (*Meta) InfixComment ¶ added in v0.0.7
func (*Meta) LeadingComment ¶ added in v0.0.7
func (*Meta) LeadingInlineComment ¶ added in v0.0.7
func (*Meta) TrailingComment ¶ added in v0.0.7
type PenaltyboxDeclaration ¶ added in v0.9.3
type PenaltyboxDeclaration struct { *Meta Name *Ident Block *BlockStatement }
func (*PenaltyboxDeclaration) GetMeta ¶ added in v0.9.3
func (p *PenaltyboxDeclaration) GetMeta() *Meta
func (*PenaltyboxDeclaration) String ¶ added in v0.9.3
func (p *PenaltyboxDeclaration) String() string
type PrefixExpression ¶
type PrefixExpression struct { *Meta Operator string Right Expression }
func (*PrefixExpression) GetMeta ¶ added in v0.0.7
func (p *PrefixExpression) GetMeta() *Meta
func (*PrefixExpression) String ¶
func (p *PrefixExpression) String() string
type RatecounterDeclaration ¶ added in v0.9.3
type RatecounterDeclaration struct { *Meta Name *Ident Block *BlockStatement }
func (*RatecounterDeclaration) GetMeta ¶ added in v0.9.3
func (r *RatecounterDeclaration) GetMeta() *Meta
func (*RatecounterDeclaration) String ¶ added in v0.9.3
func (r *RatecounterDeclaration) String() string
type RemoveStatement ¶
func (*RemoveStatement) GetMeta ¶ added in v0.0.7
func (r *RemoveStatement) GetMeta() *Meta
func (*RemoveStatement) String ¶
func (r *RemoveStatement) String() string
type RestartStatement ¶
type RestartStatement struct {
*Meta
}
func (*RestartStatement) GetMeta ¶ added in v0.0.7
func (r *RestartStatement) GetMeta() *Meta
func (*RestartStatement) String ¶
func (r *RestartStatement) String() string
type ReturnStatement ¶
type ReturnStatement struct { *Meta ReturnExpression *Expression HasParenthesis bool }
func (*ReturnStatement) GetMeta ¶ added in v0.0.7
func (r *ReturnStatement) GetMeta() *Meta
func (*ReturnStatement) String ¶
func (r *ReturnStatement) String() string
type SetStatement ¶
type SetStatement struct { *Meta Ident *Ident Operator *Operator Value Expression }
func (*SetStatement) GetMeta ¶ added in v0.0.7
func (s *SetStatement) GetMeta() *Meta
func (*SetStatement) String ¶
func (s *SetStatement) String() string
type SubroutineDeclaration ¶
type SubroutineDeclaration struct { *Meta Name *Ident Block *BlockStatement ReturnType *Ident }
func (*SubroutineDeclaration) GetMeta ¶ added in v0.0.7
func (s *SubroutineDeclaration) GetMeta() *Meta
func (*SubroutineDeclaration) String ¶
func (s *SubroutineDeclaration) String() string
type SyntheticBase64Statement ¶
type SyntheticBase64Statement struct { *Meta Value Expression }
func (*SyntheticBase64Statement) GetMeta ¶ added in v0.0.7
func (s *SyntheticBase64Statement) GetMeta() *Meta
func (*SyntheticBase64Statement) String ¶
func (s *SyntheticBase64Statement) String() string
type SyntheticStatement ¶
type SyntheticStatement struct { *Meta Value Expression }
func (*SyntheticStatement) GetMeta ¶ added in v0.0.7
func (s *SyntheticStatement) GetMeta() *Meta
func (*SyntheticStatement) String ¶
func (s *SyntheticStatement) String() string
type TableDeclaration ¶
type TableDeclaration struct { *Meta Name *Ident ValueType *Ident Properties []*TableProperty }
func (*TableDeclaration) GetMeta ¶ added in v0.0.7
func (t *TableDeclaration) GetMeta() *Meta
func (*TableDeclaration) String ¶
func (t *TableDeclaration) String() string
type TableProperty ¶
type TableProperty struct { *Meta Key *String Value Expression HasComma bool }
func (*TableProperty) String ¶
func (t *TableProperty) String() string
type UnsetStatement ¶
func (*UnsetStatement) GetMeta ¶ added in v0.0.7
func (u *UnsetStatement) GetMeta() *Meta
func (*UnsetStatement) String ¶
func (u *UnsetStatement) String() string
Source Files ¶
- acl_declaration.go
- add_statement.go
- ast.go
- backend_declaration.go
- block_statement.go
- call_statement.go
- comment.go
- declare_statement.go
- director_declaration.go
- error_statement.go
- esi_statement.go
- functioncall_expression.go
- functioncall_statement.go
- goto_destination_statement.go
- goto_statement.go
- grouped_expression.go
- helper.go
- if_expression.go
- if_statement.go
- import_statement.go
- include_statement.go
- infix_expression.go
- log_statement.go
- penaltybox_declaration.go
- prefix_expression.go
- ratecounter_declaration.go
- remove_statement.go
- restart_statement.go
- return_statement.go
- set_statement.go
- subroutine_declaration.go
- synthetic_base64_statement.go
- synthetic_statement.go
- table_declaration.go
- unset_statement.go
- vcl.go
- vcl_types.go
Click to show internal directories.
Click to hide internal directories.