Documentation
¶
Overview ¶
Package metadata for websocket or socket from rsocket-rpc-go Metadata
Index ¶
- Constants
- type Metadata
- func (m *Metadata) Address() string
- func (m *Metadata) GetMeta(key string) string
- func (m *Metadata) Method() string
- func (m *Metadata) Payload() []byte
- func (m *Metadata) Service() string
- func (m *Metadata) SetMeta(key, value string)
- func (m *Metadata) SetMethod(method string)
- func (m *Metadata) String() string
- func (m *Metadata) Tracing() string
- func (m *Metadata) Version() string
- func (m *Metadata) VersionUint16() uint16
Constants ¶
View Source
const RsocketRpcVersion = uint16(1)
RsocketRpcVersion rsocket-rpc version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { V string `json:"version"` S string `json:"service"` M string `json:"method"` T string `json:"trace"` A string `json:"address"` P []byte `json:"payload"` Md map[string]string `json:"meta"` }
func DecodeMetadata ¶
func EncodeMetadata ¶
func MallocMetadata ¶ added in v1.1.11
func MallocMetadata() *Metadata
func (*Metadata) VersionUint16 ¶
Click to show internal directories.
Click to hide internal directories.