config

package
v3.0.26 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool bool

func (Bool) String

func (r Bool) String() string

type Config

type Config struct {
	Environment Environment
}

Config @swipe:"Config"

func (*Config) Options

func (*Config) Options() []byte

type Environment

type Environment struct {
	StructType *option.NamedType
	FuncName   *option.StringValue `swipe:"option"`
	EnableDoc  *struct{}           `swipe:"option"`
	OutputDoc  option.StringValue  `swipe:"option"`
}

type Generator

type Generator struct {
	Struct   *option.NamedType
	FuncName string
	// contains filtered or unexported fields
}

func (*Generator) Filename

func (g *Generator) Filename() string

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context) []byte

func (*Generator) OutputPath added in v3.0.22

func (g *Generator) OutputPath() string

type MarkdownDocGenerator

type MarkdownDocGenerator struct {
	Struct *option.NamedType
	Output string
	// contains filtered or unexported fields
}

func (*MarkdownDocGenerator) Filename

func (g *MarkdownDocGenerator) Filename() string

func (*MarkdownDocGenerator) Generate

func (g *MarkdownDocGenerator) Generate(ctx context.Context) []byte

func (*MarkdownDocGenerator) OutputPath added in v3.0.22

func (g *MarkdownDocGenerator) OutputPath() string

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) Configure

func (p *Plugin) Configure(cfg *swipe.Config, module *option.Module, options map[string]interface{}) []error

func (*Plugin) Generators

func (p *Plugin) Generators() (generators []swipe.Generator, errs []error)

func (*Plugin) ID

func (p *Plugin) ID() string

func (*Plugin) Options

func (p *Plugin) Options() []byte

Jump to

Keyboard shortcuts

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