dashboard

package
v0.0.0-...-cf0249b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	Menus DashboardMenu `json:"menus"`
}

type DashboardBuilder

type DashboardBuilder struct {
	Menus DashboardMenu
}

func NewDashboardBuilder

func NewDashboardBuilder() *DashboardBuilder

func (*DashboardBuilder) AddRESTMenu

func (d *DashboardBuilder) AddRESTMenu(restComponent RESTComponent) *DashboardBuilder

func (*DashboardBuilder) Build

func (d *DashboardBuilder) Build() *Dashboard

type DashboardMenu

type DashboardMenu struct {
	REST []RESTComponent `json:"rest"`
}

type RESTComponent

type RESTComponent struct {
	HTTPMethod string         `json:"http_method"`
	Route      string         `json:"route"`
	Versioning RESTVersioning `json:"versioning"`
	Request    RESTRequest    `json:"request"`
}

type RESTRequest

type RESTRequest struct {
	Body   []Schema `json:"body"`
	Form   []Schema `json:"form"`
	Query  []Schema `json:"query"`
	Header []Schema `json:"header"`
	Param  []Schema `json:"param"`
	File   []Schema `json:"file"`
}

type RESTVersioning

type RESTVersioning struct {
	Type  int    `json:"type"`
	Value string `json:"value"`
	Key   string `json:"key"`
}

type Schema

type Schema struct {
	Name       string   `json:"name"`
	Type       string   `json:"type"`
	Format     string   `json:"format"`
	Item       *Schema  `json:"item"`
	Properties []Schema `json:"properties"`
}

func GenerateSchema

func GenerateSchema(s reflect.Type, tag string) []Schema

Jump to

Keyboard shortcuts

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