Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2022 Changes in this version + func IsAllowedForRootContext(child Enumeration) bool + func IsArrayOfTypes(b bytes.Bytes) bool + func IsHTTPResponseCode(s string) bool + func IsStartWithDirective(b bytes.Bytes) bool + type Coords struct + func NewCoords(f *fs.File, b bytes.Index, e bytes.Index) Coords + func (c Coords) B() bytes.Index + func (c Coords) File() *fs.File + func (c Coords) IsSet() bool + func (c Coords) Read() bytes.Bytes + func (c Coords) String() string + type Directive struct + Annotation string + BodyCoords Coords + Children []*Directive + HasExplicitContext bool + Keyword string + Parent *Directive + func New(e Enumeration, keywordCoords Coords) *Directive + func (d *Directive) AppendChild(child *Directive) + func (d *Directive) AppendParameter(b bytes.Bytes) error + func (d *Directive) SetParameter(k string, v string) error + func (d Directive) BodyError(msg string) *jerr.JAPIError + func (d Directive) BodyErrorIndex(msg string, i uint) *jerr.JAPIError + func (d Directive) CopyWoParentAndChildren() Directive + func (d Directive) Equal(d2 Directive) bool + func (d Directive) HasAnyParameters() bool + func (d Directive) KeywordError(msg string) *jerr.JAPIError + func (d Directive) Method() (Enumeration, error) + func (d Directive) Parameter(k string) string + func (d Directive) ParameterError(msg string) *jerr.JAPIError + func (d Directive) Path() (string, error) + func (d Directive) String() string + func (d Directive) Type() Enumeration + type Directives struct + func (m *Directives) Each(fn eachDirectivesFunc) error + func (m *Directives) EachReverse(fn eachDirectivesFunc) error + func (m *Directives) EachSafe(fn eachSafeDirectivesFunc) + func (m *Directives) Find(fn findDirectivesFunc) (DirectivesItem, bool) + func (m *Directives) Get(k string) (*Directive, bool) + func (m *Directives) GetValue(k string) *Directive + func (m *Directives) Has(k string) bool + func (m *Directives) Len() int + func (m *Directives) Map(fn mapDirectivesFunc) error + func (m *Directives) MarshalJSON() ([]byte, error) + func (m *Directives) Set(k string, v *Directive) + func (m *Directives) SetToTop(k string, v *Directive) + func (m *Directives) Update(k string, fn func(v *Directive) *Directive) + type DirectivesItem struct + Key string + Value *Directive + type Enumeration int + const BaseUrl + const Body + const Delete + const Description + const Enum + const Get + const HTTPResponseCode + const Headers + const Info + const Jsight + const Macro + const Paste + const Patch + const Path + const Post + const Put + const Query + const Request + const Server + const Title + const Type + const Url + const Version + func NewDirectiveType(s string) (Enumeration, error) + func (de Enumeration) IsAllowedForDirectiveContext(child Enumeration) bool + func (de Enumeration) IsHTTPRequestMethod() bool + func (de Enumeration) String() string