http

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

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseError

type ResponseError struct {
	HTTPStatus int    `json:"-"`
	Code       int    `json:"code"`
	Message    string `json:"message"`
}

ResponseError represent the reseponse error struct

func (*ResponseError) ToJSON

func (e *ResponseError) ToJSON() string

func (*ResponseError) WriteToResponse

func (e *ResponseError) WriteToResponse(w http.ResponseWriter)

type ResponseMessage

type ResponseMessage struct {
	ID      int64  `json:"id,omitempty"`
	Message string `json:"message,omitempty"`
}

type TodosHandler

type TodosHandler struct {
	TService domain.TodosService
}

func NewTodosHandler

func NewTodosHandler(r *httprouter.Router, ts domain.TodosService) *TodosHandler

Jump to

Keyboard shortcuts

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