tokenizer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(tokenize *Tokenizer)

func LoadRequest

func LoadRequest(tokenize *Tokenizer)

Types

type APIDocs

type APIDocs struct {
	Info     CollectionInfo   `json:"info"`
	Item     []CollectionItem `json:"item"`
	Variable []CollectionVar  `json:"variable"`
}

type CollectionEvent

type CollectionEvent struct {
	Listen string      `json:"listen"`
	Script EventScript `json:"script"`
}

type CollectionInfo

type CollectionInfo struct {
	PostmanID   string `json:"_postman_id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Schema      string `json:"schema"`
}

type CollectionItem

type CollectionItem struct {
	FunIden     string            `json:"funIden"`
	Name        string            `json:"name"`
	Item        []CollectionItem  `json:"item,omitempty"`
	Request     *Request          `json:"request,omitempty"`
	Response    []any             `json:"response,omitempty"`
	Event       []CollectionEvent `json:"event,omitempty"`
	ID          string            `json:"id,omitempty"`
	Description string            `json:"description,omitempty"`
}

type CollectionVar

type CollectionVar struct {
	ID    string `json:"id"`
	Key   string `json:"key"`
	Value string `json:"value"`
	Type  string `json:"type"`
}

type EventScript

type EventScript struct {
	Exec []string `json:"exec"`
	Type string   `json:"type"`
}
type Header struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type QueryParam

type QueryParam struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Request

type Request struct {
	FunIden     string       `json:"funIden"`
	Method      string       `json:"method"`
	Header      []Header     `json:"header"`
	Body        *RequestBody `json:"body,omitempty"`
	URL         RequestURL   `json:"url"`
	Description string       `json:"description,omitempty"`
}

type RequestBody

type RequestBody struct {
	Mode string `json:"mode"`
	Raw  string `json:"raw"`
}

type RequestURL

type RequestURL struct {
	Raw   string       `json:"raw"`
	Host  []string     `json:"host"`
	Path  []string     `json:"path"`
	Query []QueryParam `json:"query,omitempty"`
}

type StructField

type StructField struct {
	Name         string `json:"name"`
	JSONName     string `json:"json_name"`
	Type         string `json:"type"`
	ExampleValue string `json:"example_value,omitempty"`
}

type StructSchema

type StructSchema struct {
	StructName string        `json:"struct_name"`
	Package    string        `json:"package"`
	File       string        `json:"file"`
	Fields     []StructField `json:"fields"`
}

type Tokenizer

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

func Load

func Load() *Tokenizer

Jump to

Keyboard shortcuts

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