rendezvous

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("rendezvous record not found")
)

Functions

This section is empty.

Types

type Record

type Record struct {
	Id            uint64
	Key           string
	Location      string
	CreatedAt     time.Time
	LastUpdatedAt time.Time
}

func (*Record) Clone

func (r *Record) Clone() Record

func (*Record) CopyTo

func (r *Record) CopyTo(dst *Record)

func (*Record) Validate

func (r *Record) Validate() error

type Store

type Store interface {
	Save(ctx context.Context, record *Record) error

	Get(ctx context.Context, key string) (*Record, error)

	Delete(ctx context.Context, key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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