schemaprops

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsentGathering = "ConsentGathering"

Functions

func FindApi

func FindApi(path string) (string, error)

Types

type Collector

type Collector struct {
	Apis []PropertyOutput
	// contains filtered or unexported fields
}

func (*Collector) CollectProperties

func (c *Collector) CollectProperties(method, endpoint, body string, code int)

func (Collector) GetProperties

func (c Collector) GetProperties() map[string]map[string]int

func (Collector) OutputJSON

func (c Collector) OutputJSON() string

func (Collector) OutputJSON1

func (c Collector) OutputJSON1() string

func (*Collector) SetCollectorAPIDetails

func (c *Collector) SetCollectorAPIDetails(api, version string)

type Endpoint

type Endpoint struct {
	Method    string     `json:"method,omitempty"`
	Path      string     `json:"path,omitempty"`
	Responses []Response `json:"responses,omitempty"`
}

type PathRegex

type PathRegex struct {
	Regex   string
	Method  string
	Name    string
	Mapping string
}

type PropertyCollector

type PropertyCollector interface {
	CollectProperties(string, string, string, int)
	GetProperties() map[string]map[string]int
	SetCollectorAPIDetails(api, version string)
	OutputJSON() string
}

func GetPropertyCollector

func GetPropertyCollector() PropertyCollector

func MakeCollector

func MakeCollector() PropertyCollector

type PropertyOutput

type PropertyOutput struct {
	Api       string     `json:"api,omitempty"`
	Version   string     `json:"version,omitempty"`
	Endpoints []Endpoint `json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

type Response

type Response struct {
	Code   string   `json:"code,omitempty"`
	Fields []string `json:"fields,omitempty"`
}

Jump to

Keyboard shortcuts

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