http

package
Version: v0.0.0-...-c4bde49 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHTTPHandler

func MakeHTTPHandler(userSrv realworld.UserService, articleSrv realworld.ArticleService) http.Handler

func RegisterRoutes

func RegisterRoutes(c Context, r *chi.Mux)

Types

type ArticleHandler

type ArticleHandler struct {
	// contains filtered or unexported fields
}

func NewArticleHandler

func NewArticleHandler(c Context) ArticleHandler

type Author

type Author struct {
	Username  string          `json:"username"`
	Bio       realworld.Bio   `json:"bio"`
	Image     realworld.Image `json:"image"`
	Following bool            `json:"following"`
}

type Context

type Context struct {
	// contains filtered or unexported fields
}

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(c Context) UserHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL