group

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDelete

func ConnectDelete(f DeleteHandle)

func ConnectExists

func ConnectExists(f ExistsHandle)

func ConnectIDS

func ConnectIDS(f IDSHandle)

Types

type DeleteHandle

type DeleteHandle func(req *DeleteRequest, resp *DeleteResponse) (e error)

type DeleteRequest

type DeleteRequest struct {
	Context context.Context
	Session *xorm.Session
	Args    []interface{}
}

type DeleteResponse

type DeleteResponse struct {
	RowsAffected int64
}

func Delete

func Delete(ctx context.Context,
	session *xorm.Session,
	args []interface{},
) (result *DeleteResponse, e error)

type ExistsHandle

type ExistsHandle func(req *ExistsRequest, resp *ExistsResponse) (e error)

type ExistsRequest

type ExistsRequest struct {
	Context context.Context
	ID      int64
}

type ExistsResponse

type ExistsResponse struct {
	Exists bool
}

func Exists

func Exists(ctx context.Context,
	id int64,
) (result *ExistsResponse, e error)

type IDSHandle

type IDSHandle func(req *IDSRequest, resp *IDSResponse) (e error)

type IDSRequest

type IDSRequest struct {
	Context context.Context
	ID      int64
	Args    bool
}

type IDSResponse

type IDSResponse struct {
	ID   []int64
	Args []interface{}
}

func IDS

func IDS(ctx context.Context,
	id int64,
	args bool,
) (result *IDSResponse, e error)

Jump to

Keyboard shortcuts

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