util

package
v0.0.0-...-574ae56 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventExists = fmt.Errorf("CloudEvents exists")

Functions

func BytesToUint64

func BytesToUint64(b []byte) uint64

BytesToUint64 Converts bytes to an integer

func Compare

func Compare(a, b []byte) bool

func EventEqual

func EventEqual(existVal, valVal *v1.CloudEvent) bool

func EventEqualWithBytes

func EventEqualWithBytes(a, b []byte) (bool, error)

func FormatKeyWithEvent

func FormatKeyWithEvent(event *v1.CloudEvent) []byte

func FormatKeyWithEventGetRequest

func FormatKeyWithEventGetRequest(get *v1.EventGetRequest) []byte

func FormatKeyWithRequest

func FormatKeyWithRequest(request *v1.CloudEventStoreRequest) ([]byte, error)

func Hash

func Hash(s []*v1.CloudEvent) []byte

func Uint64ToBytes

func Uint64ToBytes(u uint64) []byte

Uint64ToBytes Converts a uint to a byte slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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