-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencoder.go
27 lines (20 loc) · 1.06 KB
/
encoder.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package soba
import (
"github.com/novln/soba/encoder"
)
// Aliasing from github.com/novln/soba/encoder package to avoid circular imports.
// Encoder is a strongly-typed, encoding-agnostic interface for adding array, map or struct-like object to the
// logging context.
// Also, be advised that Encoder aren't safe for concurrent use.
type Encoder = encoder.Encoder
// ArrayEncoder is a strongly-typed, encoding-agnostic interface for adding array to the logging context.
// Also, be advised that Encoder aren't safe for concurrent use.
type ArrayEncoder = encoder.ArrayEncoder
// ObjectEncoder is a strongly-typed, encoding-agnostic interface for adding map or struct-like object to the
// logging context.
// Also, be advised that Encoder aren't safe for concurrent use.
type ObjectEncoder = encoder.ObjectEncoder
// ObjectMarshaler define how an object can register itself in the logging context.
type ObjectMarshaler = encoder.ObjectMarshaler
// ArrayMarshaler define how an array can register itself in the logging context.
type ArrayMarshaler = encoder.ArrayMarshaler