go-admin: github.com/GoAdminGroup/go-admin/adapter Index | Files | Directories

package adapter

import "github.com/GoAdminGroup/go-admin/adapter"

Index

Package Files

adapter.go

type BaseAdapter Uses

type BaseAdapter struct {
    // contains filtered or unexported fields
}

func (*BaseAdapter) CookieKey Uses

func (base *BaseAdapter) CookieKey() string

func (*BaseAdapter) GetConnection Uses

func (base *BaseAdapter) GetConnection() db.Connection

func (*BaseAdapter) GetContent Uses

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

func (*BaseAdapter) GetUse Uses

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

func (*BaseAdapter) GetUser Uses

func (base *BaseAdapter) GetUser(ci interface{}, wf WebFrameWork) (models.UserModel, bool)

func (*BaseAdapter) HTMLContentType Uses

func (base *BaseAdapter) HTMLContentType() string

func (*BaseAdapter) SetConnection Uses

func (base *BaseAdapter) SetConnection(conn db.Connection)

type WebFrameWork Uses

type WebFrameWork interface {
    Use(interface{}, []plugins.Plugin) error
    Content(interface{}, types.GetPanelFn)
    SetConnection(db.Connection)
    GetConnection() db.Connection
    SetContext(ctx interface{}) WebFrameWork
    GetCookie() (string, error)
    Path() string
    Method() string
    PjaxHeader() string
    Redirect()
    SetContentType()
    Write(body []byte)
    CookieKey() string
    HTMLContentType() string
    Name() string
    User(ci interface{}) (models.UserModel, bool)
    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

PathSynopsis
beego
buffalo
chi
echo
fasthttp
gf
gin
gorilla
iris

Package adapter imports 13 packages (graph) and is imported by 11 packages. Updated 2020-01-16. Refresh now. Tools for package owners.