runtime

package
v0.0.0-...-4f9d474 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientNegotiator

type ClientNegotiator interface {
	Encoder() (Encoder, error)
	Decoder() (Decoder, error)
}

func NewSimpleClientNegotiator

func NewSimpleClientNegotiator() ClientNegotiator

type Decoder

type Decoder interface {
	Decode(data []byte, v interface{}) error
}

Decoder 尝试从 data 加载对象.

type Encoder

type Encoder interface {
	Encode(v interface{}) ([]byte, error)
}

Encoder 将对象序列化.

type NegotiateError

type NegotiateError struct {
	ContentType string
	Stream      bool
}

func (NegotiateError) Error

func (e NegotiateError) Error() string

Jump to

Keyboard shortcuts

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