Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentProfileElement ¶
type CommentProfileElement struct {
Comment string
}
func (CommentProfileElement) ProfileElementType ¶
func (CommentProfileElement) ProfileElementType() ProfileElementType
type DirectiveProfileElement ¶
type DirectiveProfileElement interface { ProfileElement Directive() string Args() []string }
type EmbeddedProfileElement ¶
type EmbeddedProfileElement interface { ProfileElement Embed() string Data() string }
type GenericDirectiveProfileElement ¶
type GenericDirectiveProfileElement struct {
// contains filtered or unexported fields
}
func (GenericDirectiveProfileElement) Args ¶
func (e GenericDirectiveProfileElement) Args() []string
func (GenericDirectiveProfileElement) Directive ¶
func (e GenericDirectiveProfileElement) Directive() string
func (GenericDirectiveProfileElement) ProfileElementType ¶
func (GenericDirectiveProfileElement) ProfileElementType() ProfileElementType
type GenericEmbeddedProfileElement ¶
type GenericEmbeddedProfileElement struct {
// contains filtered or unexported fields
}
func (GenericEmbeddedProfileElement) Data ¶
func (e GenericEmbeddedProfileElement) Data() string
func (GenericEmbeddedProfileElement) Embed ¶
func (e GenericEmbeddedProfileElement) Embed() string
func (GenericEmbeddedProfileElement) ProfileElementType ¶
func (GenericEmbeddedProfileElement) ProfileElementType() ProfileElementType
type Profile ¶
type Profile struct { Name string Elements []ProfileElement }
func (Profile) GetDirective ¶
func (p Profile) GetDirective(name string) []ProfileElement
func (Profile) GetEmbedded ¶
func (p Profile) GetEmbedded(name string) []ProfileElement
type ProfileElement ¶
type ProfileElement interface {
ProfileElementType() ProfileElementType
}
func ParseDirective ¶
func ParseDirective(raw []byte) (ProfileElement, error)
func ParseEmbedded ¶
func ParseEmbedded(spec string, raw []byte) (ProfileElement, error)
type ProfileElementType ¶
type ProfileElementType string
const ( CommentProfileElementType ProfileElementType = "comment" DirectiveProfileElementType ProfileElementType = "directive" EmbeddedProfileElementType ProfileElementType = "embedded" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.