adapter

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAdapter added in v1.0.9

type BaseAdapter struct{}

func (BaseAdapter) CookieKey added in v1.0.9

func (base BaseAdapter) CookieKey() string

func (BaseAdapter) GetContent added in v1.0.9

func (base BaseAdapter) GetContent(ctx interface{}, getPanelFn types.GetPanelFn, wf WebFrameWork)

func (BaseAdapter) GetUse added in v1.0.9

func (base BaseAdapter) GetUse(router interface{}, plugin []plugins.Plugin, wf WebFrameWork) error

func (BaseAdapter) HTMLContentType added in v1.0.9

func (base BaseAdapter) HTMLContentType() string

type WebFrameWork

type WebFrameWork interface {
	Use(interface{}, []plugins.Plugin) error
	Content(interface{}, types.GetPanelFn)
	SetContext(ctx interface{}) WebFrameWork
	GetCookie() (string, error)
	Path() string
	Method() string
	PjaxHeader() string
	Redirect()
	SetContentType()
	Write(body []byte)
	CookieKey() string
	HTMLContentType() string
	Name() string
	SetApp(app interface{}) error
	AddHandler(method, path string, plug plugins.Plugin)
}

WebFrameWork is a interface which is used as an adapter of framework and goAdmin. It must implement two methods. Use registers the routes and the corresponding handlers. Content writes the response to the corresponding context of framework.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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