checkpoint

package
v0.0.0-...-0a97e14 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelSource

type DelSource struct {
	ID int64 `json:"id" validate:"min=1"`
}

DelSource is checkpoint for DEL /source/:id

type GetSourceList

type GetSourceList struct {
	Category string `form:"category"`
}

GetSourceList is checkpoint for GET /source?category=xx

type PageArg

type PageArg struct {
	From int `form:"offset" binding:"exists" validate:"gte=0"`
	Size int `form:"limit" binding:"required" validate:"gte=0"`
}

type PostCategory

type PostCategory struct {
	Name string `json:"name" binding:"required"`
}

type PostSource

type PostSource struct {
	URL      string `json:"url" binding:"required" validate:"url"`
	Category int64  `json:"category_id" binding:"required" validate:"min=1"`
}

PostSource is checkpoint for POST /source

type PutSource

type PutSource struct {
	Alias    string `json:"alias"`
	Category int64  `json:"category_id"`
}

PutSource is checkpoint for PUT /source/:id

Jump to

Keyboard shortcuts

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