Back to godoc.org
github.com/b3log/pipe / controller

Package controller

v1.9.0
Latest Go to latest

The latest major version is .

Published: Nov 20, 2019 | License: GPL3 | Module: github.com/b3log/pipe

Overview

Package controller is the "controller" layer.

Index

func MapRoutes

func MapRoutes() *gin.Engine

MapRoutes returns a gin engine and binds controllers with request URLs.

type DataModel

type DataModel map[string]interface{}

DataModel represents data model.

type Status

type Status struct {
	*service.PlatformStatus

	Name      string              `json:"name"`
	Nickname  string              `json:"nickname"`
	AvatarURL string              `json:"avatarURL"`
	BlogTitle string              `json:"blogTitle"`
	BlogURL   string              `json:"blogURL"`
	Role      int                 `json:"role"`
	Blogs     []*service.UserBlog `json:"blogs"`
}

Status represents platform status and blog info.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier