utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	GetUniqueMessageID() string
	GetUniqueSubscriberID() string
	GetCurrentTimestamp() int64
}

Generator defines the interface for generating unique IDs and timestamps

func NewGenerator

func NewGenerator() Generator

NewGenerator returns a new generator

type Validator

type Validator interface {
	ValidateStruct(input interface{}) error
}

Validator defines the interface for validating input structs

func NewValidator

func NewValidator() Validator

NewValidator returns a new validator

Jump to

Keyboard shortcuts

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