common

package
v0.0.0-...-001c9b4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Status    Status
	Endpoints []Endpoint
	Structs   map[string]Struct
}

type Endpoint

type Endpoint struct {
	Name        string
	Method      string
	Path        string
	PathParams  map[string]Param
	QueryParams map[string]Param
	Headers     map[string]Param
	Body        *string
	Responses   []Response
}

type Field

type Field struct {
	Name     string
	Type     string
	Optional bool
	Array    bool
}

type Method

type Method struct {
	Package  string
	Name     string
	Comments []string
}

type Param

type Param struct {
	Type     string
	Desc     string
	Required bool
}

type Response

type Response struct {
	Code int
	Type *string
}

type Status

type Status struct {
	Title   string
	Version string
	URL     string
	Output  string
}

type Struct

type Struct struct {
	Package string
	Name    string
	Fields  []Field
}

func (Struct) FullName

func (s Struct) FullName() string

Jump to

Keyboard shortcuts

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