handler

package
v0.0.0-...-684f6f0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	gorm2.Helper
}

func (*Db) Count

func (e *Db) Count(ctx context.Context, req *db.CountRequest, rsp *db.CountResponse) error

func (*Db) Create

func (e *Db) Create(ctx context.Context, req *db.CreateRequest, rsp *db.CreateResponse) error

Call is a single request handler called via client.Call or the generated client code

func (*Db) Delete

func (e *Db) Delete(ctx context.Context, req *db.DeleteRequest, rsp *db.DeleteResponse) error

func (*Db) DropTable

func (e *Db) DropTable(ctx context.Context, req *db.DropTableRequest, rsp *db.DropTableResponse) error

func (*Db) ListTables

func (e *Db) ListTables(ctx context.Context, req *db.ListTablesRequest, rsp *db.ListTablesResponse) error

func (*Db) Read

func (e *Db) Read(ctx context.Context, req *db.ReadRequest, rsp *db.ReadResponse) error

func (*Db) RenameTable

func (e *Db) RenameTable(ctx context.Context, req *db.RenameTableRequest, rsp *db.RenameTableResponse) error

func (*Db) Truncate

func (e *Db) Truncate(ctx context.Context, req *db.TruncateRequest, rsp *db.TruncateResponse) error

func (*Db) Update

func (e *Db) Update(ctx context.Context, req *db.UpdateRequest, rsp *db.UpdateResponse) error

type Query

type Query struct {
	Field string
	Op    int
	Value interface{}
}

func Parse

func Parse(q string) ([]Query, error)

type Record

type Record struct {
	ID   string
	Data datatypes.JSON `json:"data"`

	CreatedAt time.Time
	UpdatedAt time.Time
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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