Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadCarFile(ctx context.Context, cctx *cli.Context, cidStr, outputDir string) error
- func ExtractCar(inputFilePath string, outputDir string) error
- func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool, ...) (err error)
- func ImportFromFsFile(ctx context.Context, r repo.Repo, fs fs.File, snapshot bool) (err error)
- func MakeCar(name string, b []byte, mhType uint64) ([]byte, error)
- func MetricsSentinelAPI(a lily.LilyAPI) lily.LilyAPI
- func PermissionedSentinelAPI(a lily.LilyAPI) lily.LilyAPI
- func ReadCSVAsByteSlices(filePath string) ([][]byte, error)
- func ReadTargetFile(filePath string) ([]byte, error)
- func ServeRPC(a lily.LilyAPI, stop node.StopFunc, addr multiaddr.Multiaddr, ...) error
- func SinceInMilliseconds(startTime time.Time) float64
- func Timer(ctx context.Context, m *stats.Float64Measure) func()
Constants ¶
View Source
const ( PermRead auth.Permission = "read" // default PermWrite auth.Permission = "write" PermSign auth.Permission = "sign" // Use wallet keys for signing PermAdmin auth.Permission = "admin" // Manage permissions )
Variables ¶
View Source
var (
Endpoint, _ = tag.NewKey("endpoint")
APIRequestDuration = stats.Float64("api/request_duration_ms", "Duration of API requests", stats.UnitMilliseconds)
)
View Source
var ( AllPermissions = []auth.Permission{PermRead, PermWrite, PermSign, PermAdmin} DefaultPerms = []auth.Permission{PermRead} )
Functions ¶
func DownloadCarFile ¶ added in v0.22.0
func ExtractCar ¶ added in v0.22.0
ExtractCar extracts files from a CAR file to the specified output directory.
func ImportChain ¶
func ImportFromFsFile ¶ added in v0.8.6
used for test vectors only
func ReadCSVAsByteSlices ¶ added in v0.22.0
func ReadTargetFile ¶ added in v0.22.0
func SinceInMilliseconds ¶
SinceInMilliseconds returns the duration of time since the provide time as a float64.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.