types

package
v0.0.0-...-9a745d8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
}

type Query

type Query interface{}

type Resource

type Resource interface {
	Query() Query
	Model() interface{}
	Get(ctx context.Context, name string) (interface{}, error)
	Find(ctx context.Context, query Query) (interface{}, int64, error)
	Create(ctx context.Context, resource interface{}) error
	Update(ctx context.Context, resource interface{}) error
	Delete(ctx context.Context, resource interface{}) error
}

type Routes

type Routes interface {
	Group(name string) Routes
	NewRs(name string, resource Resource)
}

Jump to

Keyboard shortcuts

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