model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Init    Init    `yaml:"init"`
	Muilt   []Muilt `yaml:"muilt"`
	Package string  `yaml:"package"`
}

type Init

type Init struct {
	Handler string   `yaml:"handler"`
	Req     InitReq  `yaml:"req"`
	Resp    InitResp `yaml:"resp"`
}

type InitReq

type InitReq struct {
	Field map[string]string `yaml:"field"`
}

type InitResp

type InitResp struct {
	Name  string            `yaml:"name"`
	Field map[string]string `yaml:"field"`
}

type KeyVal

type KeyVal[T, U any] struct {
	Key T
	Val U
}

type Muilt

type Muilt struct {
	Handler string `yaml:"handler"`
	Req     Req    `yaml:"req"`
	Resp    Resp   `yaml:"resp"`
}

type Req

type Req struct {
	URL        string            `yaml:"url"`
	Name       string            `yaml:"name"`
	NewType    map[string]string `yaml:"newType"`
	Body       any               `yaml:"body"`
	Header     []string          `yaml:"header"`
	Method     string            `yaml:"method"`
	UseDefault UseDefault        `yaml:"useDefault"`
}

type Resp

type Resp struct {
	Name    string            `yaml:"name"`
	NewType map[string]string `yaml:"newType"`
	Body    any               `yaml:"body"`
	Header  []string          `yaml:"header"`
}

type UseDefault

type UseDefault struct {
	Header []string `yaml:"header"`
}

Jump to

Keyboard shortcuts

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