Constants

package
v0.0.0-...-1e32ae1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Intent

type Intent struct {
	Method  Method
	Path    string
	Version string
	Headers map[string]string
}

type Method

type Method string
const (
	UNKNOWN Method = "wtf bro"
	GET     Method = "GET"
	POST    Method = "POST"
)

type OperationSuccessClassification

type OperationSuccessClassification string
const (
	OK                  OperationSuccessClassification = "OK"
	INTERNALSERVERERROR OperationSuccessClassification = "SERVERSHATITSELF"
	BADREQUEST          OperationSuccessClassification = "BRUH"
	NOTFOUND            OperationSuccessClassification = "NOTFOUND"
)

type Request

type Request struct {
	Intent Intent
	Body   string
}

type Response

type Response struct {
	OperationSuccessClassification OperationSuccessClassification
	ResponseHeader                 map[string]string
	Body                           string
}

Jump to

Keyboard shortcuts

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