router

package
v0.0.0-...-1cd85f6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorCategoryParameter = ErrorCategory("PARAMETER_ERROR")
	ErrorCategoryResource  = ErrorCategory("RESOURCE_ERROR")
	ErrorCategoryInternal  = ErrorCategory("INTERNAL_ERROR")
	ErrorCategoryExternal  = ErrorCategory("EXTERNAL_ERROR")
	ErrorCategoryUnknown   = ErrorCategory("UNKNOWN_ERROR")
)

Variables

This section is empty.

Functions

func CreateLineChannel

func CreateLineChannel(app *app.Application) gin.HandlerFunc

func ReceiveWebhookFromLine

func ReceiveWebhookFromLine(app *app.Application) gin.HandlerFunc

func RegisterHandlers

func RegisterHandlers(router *gin.Engine, app *app.Application)

func RenderSlidePage

func RenderSlidePage(app *app.Application) gin.HandlerFunc

Types

type ErrorCategory

type ErrorCategory string

type ErrorMessage

type ErrorMessage struct {
	Category ErrorCategory `json:"category"`
	Message  string        `json:"message"`
}

Jump to

Keyboard shortcuts

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