network

package
v0.4.16-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtocolRegister

func ProtocolRegister()

Types

type ReqCheckBlob

type ReqCheckBlob struct {
	Checksum [32]byte
}

type ReqClose

type ReqClose struct {
	Uuid string
}

type ReqCommit

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

type ReqCreate

type ReqCreate struct {
	Repository       string
	RepositoryConfig storage.RepositoryConfig
}

type ReqDeleteBlob

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

type ReqDeleteIndex

type ReqDeleteIndex struct {
	Checksum [32]byte
}

type ReqDeleteLock

type ReqDeleteLock struct {
	IndexID uuid.UUID
}

type ReqDeletePackfile

type ReqDeletePackfile struct {
	Checksum [32]byte
}

type ReqDeleteSnapshot

type ReqDeleteSnapshot struct {
	IndexID uuid.UUID
}

type ReqGetBlob

type ReqGetBlob struct {
	Checksum [32]byte
}

type ReqGetBlobs

type ReqGetBlobs struct {
}

blobs

type ReqGetIndex

type ReqGetIndex struct {
	Checksum [32]byte
}

type ReqGetIndexes

type ReqGetIndexes struct {
}

indexes

type ReqGetLock

type ReqGetLock struct {
	IndexID uuid.UUID
}

type ReqGetLocks

type ReqGetLocks struct {
}

snapshots

type ReqGetPackfile

type ReqGetPackfile struct {
	Checksum [32]byte
}

type ReqGetPackfileSubpart

type ReqGetPackfileSubpart struct {
	Checksum [32]byte
	Offset   uint32
	Length   uint32
}

type ReqGetPackfiles

type ReqGetPackfiles struct {
}

packfiles

type ReqGetSnapshot

type ReqGetSnapshot struct {
	IndexID uuid.UUID
}

type ReqGetSnapshots

type ReqGetSnapshots struct {
}

snapshots

type ReqOpen

type ReqOpen struct {
	Repository string
}

type ReqPutBlob

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

type ReqPutIndex

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

type ReqPutLock

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

type ReqPutPackfile

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

type ReqPutSnapshot

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

type Request

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

type ResCheckBlob

type ResCheckBlob 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 ResDeleteBlob

type ResDeleteBlob struct {
	Err error
}

type ResDeleteIndex

type ResDeleteIndex struct {
	Err error
}

type ResDeleteLock

type ResDeleteLock struct {
	Err error
}

type ResDeletePackfile

type ResDeletePackfile struct {
	Err error
}

type ResDeleteSnapshot

type ResDeleteSnapshot struct {
	Err error
}

type ResGetBlob

type ResGetBlob struct {
	Data []byte
	Err  error
}

type ResGetBlobs

type ResGetBlobs struct {
	Checksums [][32]byte
	Err       error
}

type ResGetIndex

type ResGetIndex struct {
	Data []byte
	Err  error
}

type ResGetIndexes

type ResGetIndexes struct {
	Checksums [][32]byte
	Err       error
}

type ResGetLock

type ResGetLock struct {
	Data []byte
	Err  error
}

type ResGetLocks

type ResGetLocks struct {
	Locks []uuid.UUID
	Err   error
}

type ResGetPackfile

type ResGetPackfile struct {
	Data []byte
	Err  error
}

type ResGetPackfileSubpart

type ResGetPackfileSubpart struct {
	Data []byte
	Err  error
}

type ResGetPackfiles

type ResGetPackfiles struct {
	Checksums [][32]byte
	Err       error
}

type ResGetSnapshot

type ResGetSnapshot struct {
	Data []byte
	Err  error
}

type ResGetSnapshots

type ResGetSnapshots struct {
	Snapshots []uuid.UUID
	Err       error
}

type ResOpen

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

type ResPutBlob

type ResPutBlob struct {
	Err error
}

type ResPutIndex

type ResPutIndex struct {
	Err error
}

type ResPutLock

type ResPutLock struct {
	Err error
}

type ResPutPackfile

type ResPutPackfile struct {
	Err error
}

type ResPutSnapshot

type ResPutSnapshot struct {
	Err error
}

Jump to

Keyboard shortcuts

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