util

package
v0.8.15 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExtension = "json"
)

Variables

This section is empty.

Functions

func ExampleDataRaw

func ExampleDataRaw() []byte

Types

type ExampleData

type ExampleData struct {
	Data map[string]ExampleSource `json:"data,omitempty"`
}

func NewExampleData

func NewExampleData() (ExampleData, error)

func (*ExampleData) BuildFilename

func (data *ExampleData) BuildFilename(handlerKey string, eventSlug string) string

func (*ExampleData) ExampleMessageBytes

func (data *ExampleData) ExampleMessageBytes(handlerKey string, eventSlug string) ([]byte, error)

type ExampleSource

type ExampleSource struct {
	FileExtension string   `json:"file_extension,omitempty"`
	EventSlugs    []string `json:"event_slugs,omitempty"`
}

Jump to

Keyboard shortcuts

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