http

package
v0.0.4-beta Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageFailure    string = "failure"
	MessageNotFound   string = "not found"
	MessageNoJobFound string = "no job found"
	MessageSuccess    string = "success"
)

Variables

This section is empty.

Functions

func Write

func Write(w http.ResponseWriter, httpcode int, r *Response)

Types

type Response

type Response struct {
	Message  string      `json:"message"`
	Data     interface{} `json:"data,omitempty"`
	Error    string      `json:"error,omitempty"`
	Metadata interface{} `json:"metadata,omitempty"`
}

Jump to

Keyboard shortcuts

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