go/src/log/slog/internal/benchmarks/handlers.go

type fastTextHandler

func newFastTextHandler(w io.Writer) slog.Handler {}

func (h *fastTextHandler) Enabled(context.Context, slog.Level) bool {}

func (h *fastTextHandler) Handle(_ context.Context, r slog.Record) error {}

func (h *fastTextHandler) appendValue(buf *buffer.Buffer, v slog.Value) {}

func (h *fastTextHandler) appendTime(buf *buffer.Buffer, t time.Time) {}

func (h *fastTextHandler) WithAttrs([]slog.Attr) slog.Handler {}

func (*fastTextHandler) WithGroup(string) slog.Handler {}

type asyncHandler

func newAsyncHandler() *asyncHandler {}

func (*asyncHandler) Enabled(context.Context, slog.Level) bool {}

func (h *asyncHandler) Handle(_ context.Context, r slog.Record) error {}

func (*asyncHandler) WithAttrs([]slog.Attr) slog.Handler {}

func (*asyncHandler) WithGroup(string) slog.Handler {}

type disabledHandler

func (disabledHandler) Enabled(context.Context, slog.Level) bool  {}

func (disabledHandler) Handle(context.Context, slog.Record) error {}

func (disabledHandler) WithAttrs([]slog.Attr) slog.Handler {}

func (disabledHandler) WithGroup(string) slog.Handler {}