Documentation ¶
Index ¶
- Constants
- func WithBackoff(value time.Duration) zap.Field
- func WithCommand(value string) zap.Field
- func WithLeaf(value interface{}) zap.Field
- func WithPublicKey(value interface{}) zap.Field
- func WithServiceEndpoint(value string) zap.Field
- func WithServiceName(value string) zap.Field
- func WithSignature(value []byte) zap.Field
- func WithSize(value int) zap.Field
- func WithStore(value string) zap.Field
- func WithTimestamp(value uint64) zap.Field
- func WithTreeID(value int64) zap.Field
- func WithVerifiableCredential(value []byte) zap.Field
- type ObjectMarshaller
Constants ¶
View Source
const ( FieldServiceName = "service" FieldSize = "size" FieldBackoff = "backoff" FieldServiceEndpoint = "serviceEndpoint" FieldTreeID = "treeID" FieldLeaf = "leaf" FieldStore = "store" FieldCommand = "command" FieldVerifiableCredential = "vc" FieldSignature = "signature" FieldTimestamp = "timestamp" FieldPublicKey = "publicKey" )
Log Fields.
Variables ¶
This section is empty.
Functions ¶
func WithBackoff ¶
WithBackoff sets the backoff field.
func WithPublicKey ¶
WithPublicKey sets the timestamp field.
func WithServiceEndpoint ¶
WithServiceEndpoint sets the service-endpoint field.
func WithServiceName ¶
WithServiceName sets the service field.
func WithSignature ¶
WithSignature sets the signature field.
func WithTimestamp ¶
WithTimestamp sets the timestamp field.
func WithTreeID ¶
WithTreeID sets the service-endpoint field.
func WithVerifiableCredential ¶
WithVerifiableCredential sets the vc field.
Types ¶
type ObjectMarshaller ¶
type ObjectMarshaller struct {
// contains filtered or unexported fields
}
ObjectMarshaller uses reflection to marshal an object's fields.
func NewObjectMarshaller ¶
func NewObjectMarshaller(key string, obj interface{}) *ObjectMarshaller
NewObjectMarshaller returns a new ObjectMarshaller.
func (*ObjectMarshaller) MarshalLogObject ¶
func (m *ObjectMarshaller) MarshalLogObject(e zapcore.ObjectEncoder) error
MarshalLogObject marshals the object's fields.
Click to show internal directories.
Click to hide internal directories.