INNER CODE UNIT · Go
func
GoAdminGroup/go-admin · adapter/adapter.go:83
func (base *BaseAdapter) SetConnection(conn db.Connection) {
base.db = conn
}
// GetConnection get the db connection.
func (base *BaseAdapter) GetConnection() db.Connection {
return base.db
}
// HTMLContentType return the default content type header.
func (*BaseAdapter) HTMLContentType() string {
return "text/html; charset=utf-8"
}
// CookieKey return the cookie key.
func (*BaseAdapter) CookieKey() string {
return auth.DefaultCookieKey
}