query

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(v ...Filter)

Register register the auth in io apps

Types

type App

type App struct{}

App query app struct

func (App) Menus

func (App) Menus() []menu.Menu

Menus setup menus

func (App) Pack

func (App) Pack()

func (App) Permissions

func (App) Permissions() []evo.Permission

Permissions setup permissions of app

func (App) Register

func (App) Register()

func (App) Router

func (App) Router()

Router setup routers

func (App) WhenReady

func (App) WhenReady()

WhenReady called after setup all apps

type Controller

type Controller struct{}

func (Controller) Register

func (c Controller) Register(v Filter)

func (Controller) Route

func (Controller) Route(r *evo.Request)

type Filter

type Filter struct {
	Object  interface{}
	Slug    string
	Allowed map[string]string

	OnRow   interface{}
	MaxRows int
	// contains filtered or unexported fields
}

func (*Filter) SetFilter

func (f *Filter) SetFilter(where string, values ...interface{}) *Filter

type Map

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

func (*Map) Count

func (m *Map) Count() int

func (*Map) Get

func (m *Map) Get(k string) *Filter

func (*Map) Has

func (m *Map) Has(k string) bool

func (*Map) Init

func (m *Map) Init()

func (*Map) Set

func (m *Map) Set(k string, v Filter)

type Response

type Response struct {
	Success bool        `json:"success"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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