Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message interface { Marshal() ([]byte, error) TryGetFieldByNumber(fieldNumber int) (interface{}, error) TrySetFieldByNumber(fieldNumber int, val interface{}) error }
func NewMessage ¶
func NewMessage(descriptor MessageDescriptor) Message
type MessageDescriptor ¶
type MessageDescriptor = *desc.MessageDescriptor
type ReadJSON ¶
type ReadJSON struct {
// contains filtered or unexported fields
}
ReadJSON implement of MessageReaderWithMethod
func NewReadJSON ¶
NewReadJSON build ReadJSON according to ServiceDescriptor
func (*ReadJSON) Read ¶
func (m *ReadJSON) Read(ctx context.Context, method string, in thrift.TProtocol) (interface{}, error)
Read read data from in thrift.TProtocol and convert to json string
func (*ReadJSON) SetBinaryWithBase64 ¶
SetBinaryWithBase64 enable/disable Base64 encoding for binary. Note that this method is not concurrent-safe.
type ServiceDescriptor ¶
type ServiceDescriptor = *desc.ServiceDescriptor
type WriteJSON ¶
type WriteJSON struct {
// contains filtered or unexported fields
}
WriteJSON implement of MessageWriter
func NewWriteJSON ¶
func (*WriteJSON) SetBase64Binary ¶
SetBase64Binary enable/disable Base64 decoding for binary. Note that this method is not concurrent-safe.
Click to show internal directories.
Click to hide internal directories.