http

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessMessage = "ok"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
}

func (*Response) Error

func (r *Response) Error(ctx *gin.Context, err error)

func (*Response) Ok

func (r *Response) Ok(ctx *gin.Context)

func (*Response) OkWithJob

func (r *Response) OkWithJob(ctx *gin.Context, j *job.Job)

func (*Response) Pong

func (r *Response) Pong(ctx *gin.Context)

type Validator

type Validator interface {
	Validate(c *gin.Context, uri, query, body interface{}) error
}

func NewValidator

func NewValidator() Validator

Jump to

Keyboard shortcuts

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