Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DubboCodec ¶
type DubboCodec struct {
// contains filtered or unexported fields
}
DubboCodec NewDubboCodec creates the dubbo codec.
func NewDubboCodec ¶
func NewDubboCodec(opts ...Option) *DubboCodec
NewDubboCodec creates a new codec instance.
func (*DubboCodec) Decode ¶
func (m *DubboCodec) Decode(ctx context.Context, message remote.Message, in remote.ByteBuffer) error
Unmarshal decode method
func (*DubboCodec) Encode ¶
func (m *DubboCodec) Encode(ctx context.Context, message remote.Message, out remote.ByteBuffer) error
Marshal encode method
type Option ¶
type Option struct {
F func(o *Options)
}
func WithFileDescriptor ¶ added in v0.1.2
func WithFileDescriptor(fd *thrift_reflection.FileDescriptor) Option
WithFileDescriptor provides method annotations for DubboCodec. Adding method annotations allows you to specify the method parameters and method name on the Java side.
func WithJavaClassName ¶
WithJavaClassName configures InterfaceName for server-side service and specifies target InterfaceName for client. Each client and service must have its own corresponding DubboCodec.
Click to show internal directories.
Click to hide internal directories.