gorg

package
v0.0.0-...-0f94b86 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoGorgTags = errors.New("no @gorg tags")
View Source
var NoGorgTagsParsed = errors.New("no @gorg tags parsed")

Functions

This section is empty.

Types

type Gorg

type Gorg struct {
	NoParamsRequired bool
	NoParamsRequest  bool
	Params           map[string]Param
	Pager            Pager
	Vars             map[string]string
	SuccessCallbacks struct {
		Key string
		Cbs map[string]SuccessCallback
	}
	RequestType         string
	RequestAfterParseCb string
}

func (*Gorg) ParseComment

func (g *Gorg) ParseComment(s string) error

type Pager

type Pager struct {
	Exists       bool
	UseOffset    bool
	LimitName    string
	OffsetName   string
	MaxLimit     int
	DefaultLimit int
}

type Param

type Param struct {
	Name    string
	Tags    string
	Comment string
}

type SuccessCallback

type SuccessCallback struct {
	Package string
	Cb      string
}

Jump to

Keyboard shortcuts

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