http

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDecodeAuthorID = pkghttp.NewError(errors.New("decode author id"), http.StatusBadRequest)
View Source
var ErrDecodeFollowerID = pkghttp.NewError(errors.New("decode follower id"), http.StatusBadRequest)
View Source
var ErrDecodeLimit = pkghttp.NewError(errors.New("decode limit"), http.StatusBadRequest)
View Source
var ErrDecodeOffset = pkghttp.NewError(errors.New("decode offset"), http.StatusBadRequest)
View Source
var ErrUnmarshalRequestBody = pkghttp.NewError(errors.New("unmarshal request body"), http.StatusBadRequest)

Functions

func NewCreatePostHandler

func NewCreatePostHandler(e endpoint.Endpoint, logger *logrus.Entry) *kithttp.Server

func NewGetPostsHandler

func NewGetPostsHandler(e endpoint.Endpoint, logger *logrus.Entry) *kithttp.Server

Types

type Set

type Set struct {
	CreatePostHandler *kithttp.Server
	GetPostsHandler   *kithttp.Server
}

func New

func New(endpoints endpoints.Set, logger *logrus.Entry) Set

func (Set) Register

func (s Set) Register(router *mux.Router)

Jump to

Keyboard shortcuts

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