events

package
v0.0.0-...-6075946 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(d config.Distributor, nc *nats.Conn, ctx context.Context) (c *Consumer, err error)

func (*Consumer) Subscribe

func (c *Consumer) Subscribe(ctx context.Context)

type DispatchError

type DispatchError struct {
	StatusCode int
	Err        error
}

func (*DispatchError) Error

func (d *DispatchError) Error() string

type Publisher

type Publisher struct {
	Router *mux.Router
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(nc *nats.Conn) (p *Publisher, err error)

type Webhook

type Webhook struct {
	Router    *mux.Router
	Publisher *Publisher
}

type WebhookBody

type WebhookBody struct {
	Event     string
	Timestamp string
	Model     string
	Username  string
	Data      data
	Snapshots snapshot `json:"snapshots"`
}

Jump to

Keyboard shortcuts

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