models

package
v0.0.0-...-23ff3f9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package models contains structures

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meme

type Meme struct {
	Image      string         `json:"image" validate:"required_without=ImageForm,omitempty,url|file|datauri"`
	ImageForm  multipart.File `form:"image" validate:"required_without=Image"`
	TopText    string         `json:"top_text" form:"top_text" validate:"omitempty"`
	BottomText string         `json:"bottom_text" form:"bottom_text" validate:"omitempty"`
	FastStroke bool           `json:"fast_stroke" validate:"omitempty"`
}

Meme holds image data and text, FastStroke faster, but less accurate

Jump to

Keyboard shortcuts

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