payload

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiEvent

type ApiEvent struct {
	Name   string             `json:"name"`
	Params event.OpenebsEvent `json:"params"`
}

type Payload

type Payload struct {
	ClientId string     `json:"client_id"`
	Events   []ApiEvent `json:"events"`
}

func NewPayload

func NewPayload(opts ...PayloadOption) (*Payload, error)

type PayloadOption

type PayloadOption func(*Payload) error

func WithClientId

func WithClientId(clientId string) PayloadOption

func WithOpenebsEvent

func WithOpenebsEvent(event *event.OpenebsEvent) PayloadOption

Jump to

Keyboard shortcuts

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