Documentation ¶
Index ¶
- Constants
- Variables
- func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool) (err error)
- func MetricsSentinelAPI(a lily.LilyAPI) lily.LilyAPI
- func PermissionedSentinelAPI(a lily.LilyAPI) lily.LilyAPI
- 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 ImportChain ¶
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.