torpedo_lib

package module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

torpedo-lib-go

Go library to use in your torpedo projects

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyId the entity ID is empty
	ErrEmptyId = errors.New("the entity ID is empty")

	// ErrIdConvertion the generated id by the repository cannot be converted to string
	ErrIdConvertion = errors.New("the generated id by the repository cannot be converted to string")

	// ErrIdNotFound entity not found with the given id
	ErrIdNotFound = errors.New("entity not found with the given id")

	//ErrBindingDTO the given object cannot be bind to DTO
	ErrBindingDTO = errors.New("the given object cannot be bind to DTO")

	// ErrNilEntity the given entity is nil
	ErrNilEntity = errors.New("the given entity is nil")
)

Functions

func IsError

func IsError(e error) bool

func NewTRN

func NewTRN(kind, name, id string) *trn.TRN

NewTRN creates a new TRN instance

func P

func P(elem ...string) string

func TimeNow

func TimeNow() int64

func Ulid

func Ulid() string

Ulid generates a ULID string. See https://github.com/ulid/spec

func Uuid

func Uuid() string

Uuid generates and inspects UUIDs based on RFC 4122

Types

type Err

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

func Error

func Error(err error) *Err

func (*Err) Error

func (e *Err) Error() string

Directories

Path Synopsis
app
http
ptr package belongs to AWS Smithy-go project.
ptr package belongs to AWS Smithy-go project.
storage
Package tql Torpedo Query Language
Package tql Torpedo Query Language

Jump to

Keyboard shortcuts

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