handler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 21 Imported by: 1

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 added in v0.21.0

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

func (*Db) Delete

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

func (*Db) DeleteData added in v0.25.0

func (e *Db) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequest, response *adminpb.DeleteDataResponse) error

func (*Db) DropTable added in v0.23.0

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

func (*Db) ListTables added in v0.22.0

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 added in v0.22.0

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

func (*Db) Usage added in v0.26.0

func (e *Db) Usage(ctx context.Context, request *adminpb.UsageRequest, response *adminpb.UsageResponse) 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