parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStatement

type BaseStatement struct {
	BasePath  string
	Endpoints []*EndpointStatement
}

type BodyStatement

type BodyStatement struct {
}

type EndpointStatement

type EndpointStatement struct {
	Endpoint string
	Methods  map[string]*MethodStatement
}

type MethodStatement

type MethodStatement struct {
	Handler string
	Body    *BodyStatement
	Params  map[string]string
	Headers map[string]string
}

type Parser

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

Parser - Parser

func NewParser

func NewParser(program string) *Parser

NewParser - Create a new Parser

func (*Parser) ParseProgram

func (p *Parser) ParseProgram() Program

type Program

type Program ServiceStatement

type ServiceStatement

type ServiceStatement struct {
	Bases          []*BaseStatement
	Options        map[string]string
	Before         map[string]string
	ErrorsHandlers map[string]string
}

Jump to

Keyboard shortcuts

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