changelog

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(client sqs.Client, queueUrl string) *Client

func (*Client) EmitEvents

func (c *Client) EmitEvents(ctx context.Context, params Message) error

type Event

type Event struct {
	EventType   Type        `json:"eventType"`
	EventDetail interface{} `json:"eventDetail"`
	Timestamp   time.Time   `json:"timestamp"`
}

type Message

type Message struct {
	DatasetChangelogEventJob MessageParams `json:"DatasetChangelogEventJob"`
}

type MessageParams

type MessageParams struct {
	OrganizationId int64   `json:"organizationId"`
	DatasetId      int64   `json:"datasetId"`
	UserId         string  `json:"userId"`
	Events         []Event `json:"events"`
	TraceId        string  `json:"traceId"`
	Id             string  `json:"id"`
}

type PackageCreateEvent

type PackageCreateEvent struct {
	Id     int64          `json:"id"`
	Name   string         `json:"name"`
	NodeId string         `json:"nodeId"`
	Parent *ParentPackage `json:"parent"`
}

type PackageRestoreEvent added in v1.4.8

type PackageRestoreEvent struct {
	Id           int64          `json:"id"`
	Name         string         `json:"name,omitempty"`
	OriginalName string         `json:"originalName,omitempty"`
	NodeId       string         `json:"nodeId,omitempty"`
	Parent       *ParentPackage `json:"parent,omitempty"`
}

type ParentPackage

type ParentPackage struct {
	Id     int64  `json:"id"`
	Name   string `json:"name"`
	NodeId string `json:"nodeId"`
}

type Type

type Type int64
const (
	CreatePackage Type = iota
	DeletePackage
	RestorePackage
)

TODO: add other types based on API

func (Type) MarshalJSON

func (s Type) MarshalJSON() ([]byte, error)

func (Type) String

func (s Type) String() string

Jump to

Keyboard shortcuts

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