Documentation ¶
Index ¶
- func Debuglog(ctx context.Context, section string, callback *isolates.Value) (*isolates.Value, error)
- func Deprecate(fn *isolates.Value, msg ...*isolates.Value) (isolates.Function, error)
- func Format(ctx context.Context, argsv ...any) (string, error)
- func FormatWithOptions(ctx context.Context, options any, argsv ...any) (string, error)
- func Inherits(ctx context.Context, constructor *isolates.Value, ...) (*isolates.Value, error)
- func Inspect(ctx context.Context, object any, args ...any) (string, error)
- func Promisify(ctx context.Context, fn *isolates.Value) (isolates.Function, error)
- type Counter
- func (c *Counter) Add(value int64, now time.Time) *Counter
- func (c *Counter) AddDuration(from time.Time, to time.Time) *Counter
- func (c *Counter) AddDurationNow(from time.Time) *Counter
- func (c *Counter) AddNow(value int64) *Counter
- func (c *Counter) Clone(ctx context.Context) (*Counter, error)
- func (c *Counter) FloorTime(now time.Time) time.Time
- func (c *Counter) Sub(value int64, now time.Time) *Counter
- func (c *Counter) Sum(duration time.Duration, now time.Time) int64
- func (c *Counter) SumAll(now time.Time) int64
- func (c *Counter) SumAllDuration(now time.Time) time.Duration
- func (c *Counter) SumAllDurationNow() time.Duration
- func (c *Counter) SumAllNow() int64
- func (c *Counter) SumDuration(duration time.Duration, now time.Time) time.Duration
- func (c *Counter) SumDurationNow(duration time.Duration) time.Duration
- func (c *Counter) SumNow(duration time.Duration) int64
- func (c *Counter) V8FuncAdd(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncAddDuration(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncAddDurationNow(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncAddNow(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncClone(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncFloorTime(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSub(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSum(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumAll(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumAllDuration(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumAllDurationNow(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumAllNow(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumDuration(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumDurationNow(in isolates.FunctionArgs) (*isolates.Value, error)
- func (c *Counter) V8FuncSumNow(in isolates.FunctionArgs) (*isolates.Value, error)
- type Import
- type InspectOptions
- type Inspector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatWithOptions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func (*Counter) SumAllDurationNow ¶
func (*Counter) SumDuration ¶
func (*Counter) SumDurationNow ¶
func (*Counter) V8FuncAddDuration ¶
func (*Counter) V8FuncAddDurationNow ¶
func (*Counter) V8FuncAddNow ¶
func (*Counter) V8FuncClone ¶
func (*Counter) V8FuncFloorTime ¶
func (*Counter) V8FuncSumAll ¶
func (*Counter) V8FuncSumAllDuration ¶
func (*Counter) V8FuncSumAllDurationNow ¶
func (*Counter) V8FuncSumAllNow ¶
func (*Counter) V8FuncSumDuration ¶
func (*Counter) V8FuncSumDurationNow ¶
func (*Counter) V8FuncSumNow ¶
type InspectOptions ¶
type InspectOptions struct { ShowHidden bool `v8:"showHidden"` Depth int `v8:"depth"` Colors bool `v8:"colors"` CustomInspect bool `v8:"customInspect"` ShowProxy bool `v8:"showProxy"` MaxArrayLength int `v8:"maxArrayLength"` MaxStringLength int `v8:"maxStringLength"` BreakLength int `v8:"breakLength"` Compact any `v8:"compact"` Sorted any `v8:"sorted"` Getters any `v8:"getters"` NumericSeparator bool `v8:"numericSeparator"` }
type Inspector ¶
type Inspector struct { *stream.DuplexBase // contains filtered or unexported fields }
func NewInspector ¶
func NewInspector(in isolates.FunctionArgs) (*Inspector, error)
Click to show internal directories.
Click to hide internal directories.