types

package
v0.0.0-...-e8b8c82 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBlob

func IsBlob(id ObjectID) bool

func ObjectIDToString

func ObjectIDToString(id ObjectID) string

func SessionIDToString

func SessionIDToString(sig SessionID) string

func SignatureToString

func SignatureToString(sig Signature) string

Types

type InstanceID

type InstanceID = uint64

func UnspecifiedInstanceID

func UnspecifiedInstanceID() InstanceID

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

type ObjectID

type ObjectID = uint64

func EmptyBlobID

func EmptyBlobID() ObjectID

func GenerateObjectID

func GenerateObjectID() ObjectID

func InvalidObjectID

func InvalidObjectID() ObjectID

func ObjectIDFromString

func ObjectIDFromString(id string) (ObjectID, error)

type Payload

type Payload struct {
	ID         ObjectID `json:"object_id"`
	StoreFd    int      `json:"store_fd"`
	ArenaFd    int      `json:"-"`
	DataOffset uint64   `json:"data_offset"`
	DataSize   uint64   `json:"data_size"`
	MapSize    uint64   `json:"map_size"`
	Pointer    *uint64  `json:"-"`
	Owing      bool     `json:"is_owner"`
	Sealed     bool     `json:"is_sealed"`
	GPU        bool     `json:"is_gpu"`
}

type SessionID

type SessionID = uint64

func RootSessionID

func RootSessionID() SessionID

func SessionIDFromString

func SessionIDFromString(sig string) (SessionID, error)

type Signature

type Signature = uint64

func InvalidSignature

func InvalidSignature() Signature

func SignatureFromString

func SignatureFromString(sig string) (Signature, error)

Jump to

Keyboard shortcuts

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