models

package
v0.0.0-...-68af30d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataUrl

type DataUrl struct {
	BaseURL string `json:"base_url"`
	RefURL  string `json:"ref_url"`
}

type EntityBody

type EntityBody struct {
	MimeType string        `json:"mimeType"`
	Params   []EntityParam `json:"params"`
}

type EntityHeader

type EntityHeader struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type EntityParam

type EntityParam struct {
	Name     string `json:"name"`
	Value    string `json:"value"`
	ID       string `json:"id"`
	Disabled bool   `json:"disabled"`
}

type Insomnia

type Insomnia struct {
	Type         string     `json:"_type"`
	ExportFormat int        `json:"__export_format"`
	ExportDate   time.Time  `json:"__export_date"`
	ExportSource string     `json:"__export_source"`
	Resources    []Resource `json:"resources"`
}

type QueryParameters

type QueryParameters struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Resource

type Resource struct {
	ID                              string            `json:"_id"`
	ParentID                        string            `json:"parentId"`
	Modified                        int64             `json:"modified"`
	Created                         int64             `json:"created"`
	Name                            string            `json:"name"`
	Description                     string            `json:"description,omitempty"`
	Certificates                    []interface{}     `json:"certificates,omitempty"`
	Type                            string            `json:"_type"`
	Data                            DataUrl           `json:"data,omitempty"`
	Color                           interface{}       `json:"color,omitempty"`
	Cookies                         []interface{}     `json:"cookies,omitempty"`
	Environment                     struct{}          `json:"environment,omitempty"`
	URL                             string            `json:"url,omitempty"`
	Method                          string            `json:"method,omitempty"`
	Body                            EntityBody        `json:"body,omitempty"`
	Parameters                      []QueryParameters `json:"parameters,omitempty"`
	Headers                         []EntityHeader    `json:"headers,omitempty"`
	Authentication                  struct{}          `json:"authentication,omitempty"`
	SettingStoreCookies             bool              `json:"settingStoreCookies,omitempty"`
	SettingSendCookies              bool              `json:"settingSendCookies,omitempty"`
	SettingDisableRenderRequestBody bool              `json:"settingDisableRenderRequestBody,omitempty"`
	SettingEncodeURL                bool              `json:"settingEncodeUrl,omitempty"`
	InsomniaParams                  []string          `json:"insomnia_params,omitempty"`
}

Jump to

Keyboard shortcuts

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