package
0.1.21
Repository: https://github.com/filecoin-titan/titan.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AssetDatastore returns a new metadata datastore.
CheckFdLimit checks the file descriptor limit and returns an error if the limit is too low.
GenerateTokenWithWebPermission create a new token based on the given permissions.
LockedRepo returns a function that returns the locked repository with an added lifecycle hook to close the repository.
NewAssetManager creates a new storage manager instance.
NewAssetsManager creates a function that generates new instances of asset.Manager.
No description provided by the author
NewDataSync creates a new instance of datasync.DataSync with the given asset.Manager.
NewDB returns an *sqlx.DB instance.
NewDevice creates a function that generates new instances of device.Device.
NewGetSchedulerConfigFunc creates a function to get the scheduler config.
NewLocatorStorage creates a locator storage using the give addresses.
NewNodeStorageManager creates a new instance of storage.Manager with the given carfile store path.
NewNodeValidation creates a new instance of validation.Validation with the given asset.Manager and device.Device.
NewPrivateKey generates and returns the private key.
NewProjectManager creates a new project manager instance.
NewPubSub returns a new pubsub instance with a buffer of 50.
NewRateLimiter creates a new rate limiter based on the given device's bandwidth limits.
NewRegion creates a new region instance using the given database path.
No description provided by the author
NewServerID generates and returns the server ID.
NewSetSchedulerConfigFunc creates a function to set the scheduler config.
NewTCPServer returns a new TCP server instance.
NewValidation creates a new validation manager instance.
NewWorkerd creates a new workerd object at the given path.
ProjectDatastore returns a new metadata datastore.
RegisterToEtcd registers the server to etcd.
WorkerdPath returns the path for Workerd's workspace based on the provided LockedRepo.

# Constants

nolint:gosec.
nolint:gosec.
nolint:gosec.
WorkerdPath is the directory path for Workerd's workspace.

# Structs

AssetManagerParams Manager Params.
ProjectManagerParams Manager Params.