queues

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: BSD-3-Clause Imports: 14 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,required"`
}

type M

type M = map[string]interface{}

type PublishDto

type PublishDto struct {
	Subject string `json:"subject,required"`
	Payload M      `json:"payload,required"`
}

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,required" vd:"mongoId($);msg:'the document id must be an ObjectId'"`
}

type SyncDto

type SyncDto struct {
	Id primitive.ObjectID `json:"id,required"`
}

Jump to

Keyboard shortcuts

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