actions

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpsertUpdate = "upsert_update"
	UpsertCreate = "upsert_create"
)
View Source
const Aggregate = "aggregate"
View Source
const Create = "create"
View Source
const Delete = "delete"
View Source
const Read = "read"
View Source
const Update = "update"

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateAction

type AggregateAction struct {
	Client *mongo.Client
}

func NewAggregateAction

func NewAggregateAction(client *mongo.Client) *AggregateAction

func (*AggregateAction) Handle

func (action *AggregateAction) Handle(request types.IRequest) (interface{}, int, error)

type CreateAction

type CreateAction struct {
	Client *mongo.Client
}

func NewSaveAction

func NewSaveAction(client *mongo.Client) *CreateAction

func (*CreateAction) Handle

func (action *CreateAction) Handle(request types.IRequest) (interface{}, int, error)

type CreateIndexesAction added in v1.0.7

type CreateIndexesAction struct {
	Client *mongo.Client
}

func NewCreateIndexesAction added in v1.0.7

func NewCreateIndexesAction(client *mongo.Client) *CreateIndexesAction

func (*CreateIndexesAction) Handle added in v1.0.7

func (action *CreateIndexesAction) Handle(request types.IRequest) (interface{}, int, error)

type DeleteAction

type DeleteAction struct {
	Client *mongo.Client
}

func NewDeleteAction

func NewDeleteAction(client *mongo.Client) *DeleteAction

func (*DeleteAction) Handle

func (action *DeleteAction) Handle(request types.IRequest) (interface{}, int, error)

type DropIndexesAction added in v1.1.2

type DropIndexesAction struct {
	Client *mongo.Client
}

func NewDropIndexesAction added in v1.1.2

func NewDropIndexesAction(client *mongo.Client) *DropIndexesAction

func (*DropIndexesAction) Handle added in v1.1.2

func (action *DropIndexesAction) Handle(request types.IRequest) (interface{}, int, error)

type GetIndexesAction added in v1.0.7

type GetIndexesAction struct {
	Client *mongo.Client
}

func NewGetIndexesAction added in v1.0.7

func NewGetIndexesAction(client *mongo.Client) *GetIndexesAction

func (*GetIndexesAction) Handle added in v1.0.7

func (action *GetIndexesAction) Handle(request types.IRequest) (interface{}, int, error)

type ReadAction

type ReadAction struct {
	Client *mongo.Client
}

func NewGetAction

func NewGetAction(client *mongo.Client) *ReadAction

func (*ReadAction) Handle

func (action *ReadAction) Handle(request types.IRequest) (interface{}, int, error)

type UpdateAction

type UpdateAction struct {
	Client *mongo.Client
}

func NewUpdateAction

func NewUpdateAction(client *mongo.Client) *UpdateAction

func (*UpdateAction) Handle

func (action *UpdateAction) Handle(request types.IRequest) (interface{}, int, error)

type UpsertAction

type UpsertAction struct {
	Client *mongo.Client
}

func NewUpsertAction

func NewUpsertAction(client *mongo.Client) *UpsertAction

func (*UpsertAction) Handle

func (action *UpsertAction) Handle(request types.IRequest) (interface{}, int, error)

Jump to

Keyboard shortcuts

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