restserver

package
v0.0.0-...-533e1e5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleData

type ArticleData struct {
	Article entity.Article `json:"article"`
}

TokenInfoData

type GetArticleData

type GetArticleData struct {
	Articles []entity.Article `json:"articles"`
}

type HTTPArticleResp

type HTTPArticleResp struct {
	Meta entity.Meta `json:"metadata"`
	Data ArticleData `json:"data"`
}

type HTTPErrResp

type HTTPErrResp struct {
	Meta entity.Meta `json:"metadata"`
}

type HTTPGetArticleResp

type HTTPGetArticleResp struct {
	Meta entity.Meta    `json:"metadata"`
	Data GetArticleData `json:"data"`
}

type REST

type REST interface{}

func Init

func Init(logger log.Logger, uc *usecase.Usecase, router *mux.Router) REST

Jump to

Keyboard shortcuts

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