Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { BinaryToJSON(fileDescriptorSets []*descriptor.FileDescriptorSet, messagePath string, binaryData []byte) ([]byte, error) JSONToBinary(fileDescriptorSets []*descriptor.FileDescriptorSet, messagePath string, jsonData []byte) ([]byte, error) }
Handler handles reflection.
func NewHandler ¶
func NewHandler(options ...HandlerOption) Handler
NewHandler returns a new Handler.
type HandlerOption ¶
type HandlerOption func(*handler)
HandlerOption is an option for a new Handler.
func HandlerWithLogger ¶
func HandlerWithLogger(logger *zap.Logger) HandlerOption
HandlerWithLogger returns a HandlerOption that uses the given logger.
The default is to use zap.NewNop().
Click to show internal directories.
Click to hide internal directories.