headers

package
v0.0.0-...-7a2f58c Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package headers various structs for API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultHeadersJson

func SetDefaultHeadersJson(w http.ResponseWriter)

SetDefaultHeadersJson for json pages

Types

type LoadedImage

type LoadedImage struct {
	Source  string
	Preview string
}

LoadedImage struct for image Source is full image and Preview

type ReplayStatus

type ReplayStatus struct {
	Status      int           `json:"Status"`
	Description string        `json:"Description"`
	Images      []LoadedImage `json:"Images"`
}

ReplayStatus for complete requests

func (*ReplayStatus) Encode

func (obj *ReplayStatus) Encode(w http.ResponseWriter) error

Encode to json

type RequestCreateImgJsonBase64

type RequestCreateImgJsonBase64 struct {
	Data string `json:"Data"` // Example: data:image/jpeg;
	Body string `json:"Body"` // body Base64
}

RequestCreateImgJsonBase64 struct for base64 images

func (*RequestCreateImgJsonBase64) Decode

Decode request

func (*RequestCreateImgJsonBase64) Validate

func (t *RequestCreateImgJsonBase64) Validate() error

Validate request

Jump to

Keyboard shortcuts

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