metadata

package
v1.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package metadata for websocket or socket from rsocket-rpc-go Metadata

Index

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 {
	// contains filtered or unexported fields
}

func DecodeMetadata

func DecodeMetadata(b []byte) *Metadata

func EncodeMetadata

func EncodeMetadata(service, method, tracing string, meta map[string]string) (*Metadata, error)

func MallocMetadata added in v1.1.11

func MallocMetadata() *Metadata

func (*Metadata) Address

func (p *Metadata) Address() string

func (*Metadata) Method

func (p *Metadata) Method() string

func (*Metadata) Payload added in v1.0.6

func (p *Metadata) Payload() []byte

func (*Metadata) Service

func (p *Metadata) Service() string

func (*Metadata) SetMethod added in v1.0.6

func (p *Metadata) SetMethod(method string)

func (*Metadata) String

func (p *Metadata) String() string

func (*Metadata) Tracing

func (p *Metadata) Tracing() string

func (*Metadata) Version

func (p *Metadata) Version() string

func (*Metadata) VersionUint16

func (p *Metadata) VersionUint16() uint16

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL