runreveal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*RunReveal)

func WithBatchSize

func WithBatchSize(size int) Option

func WithFlushFrequency

func WithFlushFrequency(t time.Duration) Option

func WithHTTPClient

func WithHTTPClient(httpc *http.Client) Option

func WithWebhookURL

func WithWebhookURL(url string) Option

type RunReveal

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

func New

func New(opts ...Option) *RunReveal

func (*RunReveal) Flush

func (r *RunReveal) Flush(ctx context.Context, msgs []kawa.Message[types.Event]) error

Flush sends the given messages of type kawa.Message[type.Event] to the RunReveal api

func (*RunReveal) Run

func (r *RunReveal) Run(ctx context.Context) error

func (*RunReveal) Send

func (r *RunReveal) Send(ctx context.Context, ack func(), msgs ...kawa.Message[types.Event]) error

Jump to

Keyboard shortcuts

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