marshal

package
v0.0.0-...-b217fde Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RESP_OK = Response{Message: "OK", Status: http.StatusOK}

Functions

This section is empty.

Types

type Response

type Response struct {
	Message string          `json:"message"`
	Context ResponseContext `json:"context"`
	Results ResponseResults `json:"results"`
	Status  int             `json:"status"`
}

func (*Response) IsError

func (r *Response) IsError() bool

func (*Response) ReturnJson

func (r *Response) ReturnJson(w http.ResponseWriter)

Return JSON response

type ResponseContext

type ResponseContext []string

type ResponseResults

type ResponseResults []UpResult

type UpResult

type UpResult struct {
	Orig string `json:"orig"`
	Dest string `json:"dest"`
}

Individual upload result

Jump to

Keyboard shortcuts

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