core

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JApiCore

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

JApiCore the Brain and heart of jApi. Collects lexemes from scanner, validates document logic and structure, builds catalog, renders documentation

func NewJApiCore

func NewJApiCore(file *fs.File, oo ...Option) *JApiCore

func (*JApiCore) AddRawUserType

func (core *JApiCore) AddRawUserType(d *directive.Directive)

func (*JApiCore) BuildCatalog

func (core *JApiCore) BuildCatalog() *jerr.JApiError

func (*JApiCore) Catalog

func (core *JApiCore) Catalog() *catalog.Catalog

func (*JApiCore) HasUnclosedExplicitContext

func (core *JApiCore) HasUnclosedExplicitContext() bool

func (*JApiCore) UserTypesData

func (core *JApiCore) UserTypesData() map[string]*jschema.JSchema

type Option

type Option func(*JApiCore)

func WithBannedDirectives

func WithBannedDirectives(dd ...directive.Enumeration) Option

WithBannedDirectives ban specified directives. Core will emit an error if found one of them.

type PathParameter

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

func PathParameters

func PathParameters(path string) ([]PathParameter, error)

type PieceOfPathVariable

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

func PieceOfPathVariableImitation added in v0.2.0

func PieceOfPathVariableImitation() PieceOfPathVariable

imitates piece for param, gatherd from URL or Method-directive, not from Path schema.

Jump to

Keyboard shortcuts

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