Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCoder ¶
RegisterCoder registers the provided ICoder for use with all Transport clients and servers.
Types ¶
type ICoder ¶
type ICoder interface { Marshal(v interface{}) ([]byte, error) Unmarshal(data []byte, v interface{}) error Name() string }
ICoder defines the interface Transport uses to encode and decode messages. Note that implementations of this interface must be thread safe; a ICoder's methods can be called from concurrent goroutines.
Click to show internal directories.
Click to hide internal directories.