server

package
v0.0.0-...-9165fae Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleReq

type ArticleReq struct {
	Article struct {
		Title       *string   `json:"title"`
		Description *string   `json:"description"`
		Body        *string   `json:"body"`
		TagList     *[]string `json:"tagList"`
	} `json:"article,required"`
}

type RouterHandler

type RouterHandler struct {
	Logger uc.Logger
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(i uc.Handler, auth uc.AuthHandler) RouterHandler

func NewRouterWithLogger

func NewRouterWithLogger(i uc.Handler, auth uc.AuthHandler, logger uc.Logger) RouterHandler

func (RouterHandler) MethodAndPath

func (RouterHandler) MethodAndPath(c *gin.Context) string

func (RouterHandler) SetRoutes

func (rH RouterHandler) SetRoutes(r *gin.Engine)

Jump to

Keyboard shortcuts

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