queues

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	QueuesServices *Service
}

func (*Controller) Destroy

func (x *Controller) Destroy(ctx context.Context, c *app.RequestContext)

func (*Controller) Info

func (x *Controller) Info(ctx context.Context, c *app.RequestContext)

func (*Controller) Publish

func (x *Controller) Publish(ctx context.Context, c *app.RequestContext)

func (*Controller) Sync

func (x *Controller) Sync(ctx context.Context, c *app.RequestContext)

type DestroyDto

type DestroyDto struct {
	Ids []primitive.ObjectID `json:"ids" vd:"gt=0,dive,mongodb"`
}

type M

type M = map[string]interface{}

type PublishDto

type PublishDto struct {
	Subject string `json:"subject" vd:"required"`
	Payload M      `json:"payload" vd:"gt=0"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) Destroy

func (x *Service) Destroy(ctx context.Context, ids []primitive.ObjectID) (err error)

func (*Service) Event

func (x *Service) Event() (err error)

func (*Service) Info

func (x *Service) Info(ctx context.Context, id primitive.ObjectID) (r *nats.StreamInfo, err error)

func (*Service) Publish

func (x *Service) Publish(ctx context.Context, dto PublishDto) (r interface{}, err error)

func (*Service) Sync

func (x *Service) Sync(ctx context.Context, id primitive.ObjectID) (err error)

type StateDto

type StateDto struct {
	Id string `path:"id" vd:"mongodb"`
}

type SyncDto

type SyncDto struct {
	Id primitive.ObjectID `json:"id" vd:"mongodb"`
}

Jump to

Keyboard shortcuts

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