vo

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package vo provides value objects vo package does not have any dependencies on other packages except the standard library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash []byte

Hash is a type to manage hash.

func NewHash added in v0.0.2

func NewHash(data []byte) (Hash, error)

NewHash creates a new Hash from the given data.

func (Hash) Bytes

func (h Hash) Bytes() []byte

Bytes returns the byte slice of the hash.

func (Hash) Equal

func (h Hash) Equal(other Hash) bool

Equal compares two Hash values for equality.

func (Hash) String

func (h Hash) String() string

String returns the string representation of the hash.

type OS

type OS struct {
	Type    string
	Version string
}

OS is a value object that represents an operating system.

type Service

type Service struct {
	Name       string
	Namespace  string
	Version    string
	InstanceID string
}

Service is a value object that represents a service which is defined in opentelemetry's semantic conventions.

Jump to

Keyboard shortcuts

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