atomicx

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeExtensionType = 101
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time struct {
	atomic.Pointer[time.Time]
}

Time is a wrapper for safely accessing a timestamp that implements the msgp.Extension interface

func NewTime

func NewTime(in time.Time) *Time

func (*Time) ExtensionType

func (t *Time) ExtensionType() int8

func (*Time) Len

func (t *Time) Len() int

func (*Time) Load

func (t *Time) Load() time.Time

func (*Time) MarshalBinaryTo

func (t *Time) MarshalBinaryTo(b []byte) error

func (*Time) Store

func (t *Time) Store(in time.Time)

func (*Time) UnmarshalBinary

func (t *Time) UnmarshalBinary(b []byte) error

Jump to

Keyboard shortcuts

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