network

package
v0.2.13-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtocolRegister

func ProtocolRegister()

func Server

func Server(repository *storage.Repository, addr string)

func Stdio

func Stdio() error

Types

type ReqCheckChunk

type ReqCheckChunk struct {
	Checksum [32]byte
}

type ReqCheckObject

type ReqCheckObject struct {
	Checksum [32]byte
}

type ReqClose

type ReqClose struct {
	Uuid string
}

type ReqCommit

type ReqCommit struct {
	Transaction uuid.UUID
}

type ReqCreate

type ReqCreate struct {
	Repository       string
	RepositoryConfig storage.RepositoryConfig
}

type ReqGetBlob

type ReqGetBlob struct {
	Checksum [32]byte
}

type ReqGetChunk

type ReqGetChunk struct {
	Checksum [32]byte
}

type ReqGetChunkRefCount

type ReqGetChunkRefCount struct {
	Checksum [32]byte
}

type ReqGetChunkSize

type ReqGetChunkSize struct {
	Checksum [32]byte
}

type ReqGetChunks

type ReqGetChunks struct {
}

type ReqGetIndexes

type ReqGetIndexes struct {
}

type ReqGetMetadata

type ReqGetMetadata struct {
	Uuid uuid.UUID
}

type ReqGetObject

type ReqGetObject struct {
	Checksum [32]byte
}

type ReqGetObjectRefCount

type ReqGetObjectRefCount struct {
	Checksum [32]byte
}

type ReqGetObjectSize

type ReqGetObjectSize struct {
	Checksum [32]byte
}

type ReqGetObjects

type ReqGetObjects struct {
}

type ReqOpen

type ReqOpen struct {
	Repository string
}

type ReqPurge

type ReqPurge struct {
	Uuid uuid.UUID
}

type ReqPutChunk

type ReqPutChunk struct {
	Transaction uuid.UUID
	Checksum    [32]byte
	Data        []byte
}

type ReqPutMetadata

type ReqPutMetadata struct {
	Transaction uuid.UUID
	Data        []byte
}

type ReqPutObject

type ReqPutObject struct {
	Transaction uuid.UUID
	Checksum    [32]byte
	Data        []byte
}

type ReqReferenceChunks

type ReqReferenceChunks struct {
	Transaction uuid.UUID
	Keys        [][32]byte
}

type ReqReferenceObjects

type ReqReferenceObjects struct {
	Transaction uuid.UUID
	Keys        [][32]byte
}

type ReqStorePutBlob

type ReqStorePutBlob struct {
	Checksum [32]byte
	Data     []byte
}

type ReqStorePutMetadata

type ReqStorePutMetadata struct {
	IndexID uuid.UUID
	Data    []byte
}

type ReqTransaction

type ReqTransaction struct {
	Uuid uuid.UUID
}

type Request

type Request struct {
	Uuid    uuid.UUID
	Type    string
	Payload interface{}
}

type ResCheckChunk

type ResCheckChunk struct {
	Exists bool
	Err    error
}

type ResCheckObject

type ResCheckObject struct {
	Exists bool
	Err    error
}

type ResClose

type ResClose struct {
	Err error
}

type ResCommit

type ResCommit struct {
	Err error
}

type ResCreate

type ResCreate struct {
	Err error
}

type ResGetBlob

type ResGetBlob struct {
	Data []byte
	Err  error
}

type ResGetChunk

type ResGetChunk struct {
	Data []byte
	Err  error
}

type ResGetChunkRefCount

type ResGetChunkRefCount struct {
	RefCount uint64
	Err      error
}

type ResGetChunkSize

type ResGetChunkSize struct {
	Size uint64
	Err  error
}

type ResGetChunks

type ResGetChunks struct {
	Chunks [][32]byte
	Err    error
}

type ResGetIndexes

type ResGetIndexes struct {
	Indexes []uuid.UUID
	Err     error
}

type ResGetMetadata

type ResGetMetadata struct {
	Data []byte
	Err  error
}

type ResGetObject

type ResGetObject struct {
	Data []byte
	Err  error
}

type ResGetObjectRefCount

type ResGetObjectRefCount struct {
	RefCount uint64
	Err      error
}

type ResGetObjectSize

type ResGetObjectSize struct {
	Size uint64
	Err  error
}

type ResGetObjects

type ResGetObjects struct {
	Objects [][32]byte
	Err     error
}

type ResOpen

type ResOpen struct {
	RepositoryConfig *storage.RepositoryConfig
	Err              error
}

type ResPurge

type ResPurge struct {
	Err error
}

type ResPutChunk

type ResPutChunk struct {
	NBytes int
	Err    error
}

type ResPutMetadata

type ResPutMetadata struct {
	NBytes int
	Err    error
}

type ResPutObject

type ResPutObject struct {
	NBytes int
	Err    error
}

type ResReferenceChunks

type ResReferenceChunks struct {
	Exists []bool
	Err    error
}

type ResReferenceObjects

type ResReferenceObjects struct {
	Exists []bool
	Err    error
}

type ResStorePutBlob

type ResStorePutBlob struct {
	NBytes int
	Err    error
}

type ResStorePutMetadata

type ResStorePutMetadata struct {
	NBytes int
	Err    error
}

type ResTransaction

type ResTransaction struct {
	Uuid uuid.UUID
	Err  error
}

Jump to

Keyboard shortcuts

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