server

package
v0.0.0-...-5b9f10b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(config *rest.HttpConfig, debugMode bool) *Router

func (*Router) Run

func (r *Router) Run()

type ThingGetRequest

type ThingGetRequest struct {
	Name string `path:"name" validate:"required"`
}

type ThingGetResponse

type ThingGetResponse struct {
	Result string
}

type ThingPutRequest

type ThingPutRequest struct {
	Name  string `path:"name" validate:"required"`
	Value string `json:"value" validate:"required"`
}

type ThingPutResponse

type ThingPutResponse struct {
}

Jump to

Keyboard shortcuts

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