meta

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateParameters

type CreateParameters struct {
	Identifier string `json:"identifier"`
	Version    int    `json:"version"`
	Path       string `json:"path"`
	Data       string `json:"data"`
}

type DeleteParameters

type DeleteParameters struct {
	ID      int
	Version int
	Path    string
}

type Error

type Error struct {
	ErrorCode    int    `json:"error_code,omitempty"`
	ErrorMessage string `json:"error_message,omitempty"`
}

type GetBagParameters

type GetBagParameters struct {
	ID int
}

type Payload

type Payload struct {
	Success bool        `json:"success,omitempty"`
	Data    interface{} `json:"data,omitempty"`
	Error   *Error      `json:"error,omitempty"`
}

type Route

type Route struct {
	Method      string
	Name        string
	Path        string
	Version     string
	Handler     func(http.ResponseWriter, *http.Request)
	Middlewares []string
}

type UpdateParameters

type UpdateParameters struct {
	ID      int
	Version int
	Path    string
	Data    string
}

Jump to

Keyboard shortcuts

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