imessages

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 15 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 {
	ImessagesX *Service
}

func (*Controller) DeleteMetrics

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

func (*Controller) DeleteRule added in v0.1.26

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

func (*Controller) GetMetrics

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

func (*Controller) GetNodes

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

func (*Controller) Publish

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

func (*Controller) UpdateMetrics added in v0.1.26

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

func (*Controller) UpdateRule added in v0.1.26

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

type DeleteMetricsDto

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

type DeleteRuleDto added in v0.1.26

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

type GetMetricsDto

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

type M

type M = map[string]interface{}

type PublishDto

type PublishDto struct {
	Topic   string `json:"topic" vd:"required"`
	Payload M      `json:"payload" vd:"required,gt=0"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) DeleteMetrics

func (x *Service) DeleteMetrics(ctx context.Context, id primitive.ObjectID) (rs []interface{}, err error)

func (*Service) DeleteRule added in v0.1.26

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

func (*Service) Event

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

func (*Service) GetMetrics

func (x *Service) GetMetrics(ctx context.Context, id primitive.ObjectID) (rs []interface{}, err error)

func (*Service) GetNodes

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

func (*Service) Publish

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

func (*Service) R

func (x *Service) R(ctx context.Context) *req.Request

func (*Service) UpdateMetrics added in v0.1.26

func (x *Service) UpdateMetrics(ctx context.Context, id primitive.ObjectID) (rs []interface{}, err error)

func (*Service) UpdateRule added in v0.1.26

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

type UpdateMetricsDto added in v0.1.26

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

type UpdateRuleDto added in v0.1.26

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

Jump to

Keyboard shortcuts

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