package postcard
Import Path
github.com/tmc/go-iroh/internal/postcard (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Involved Source Files
Package postcard encodes and decodes the Rust postcard wire format.
Package-Level Type Names (total 5)
Decoder incrementally decodes postcard values.
Bool decodes a postcard bool.
BytesValue decodes a postcard byte sequence.
Decode decodes the next postcard value into v.
Done reports whether d consumed all input.
Int decodes a postcard signed integer.
RawBytes decodes n bytes without a length prefix.
String decodes a postcard string.
Uint decodes a postcard unsigned integer.
*Decoder : github.com/grpc-ecosystem/grpc-gateway/v2/runtime.Decoder
func NewDecoder(b []byte) *Decoder
func DecoderFrom.DecodePostcard(*Decoder) error
func github.com/tmc/go-iroh/internal/relayproto.(*KeyMaterialClientAuth).DecodePostcard(d *Decoder) error
DecoderFrom is implemented by values that decode themselves from d.
( DecoderFrom) DecodePostcard(*Decoder) error
*github.com/tmc/go-iroh/internal/relayproto.KeyMaterialClientAuth
Encoder incrementally encodes postcard values.
Bool appends v as a postcard bool.
Bytes returns a copy of the encoded bytes.
BytesValue appends b as a postcard byte sequence.
Encode appends v to e.
Int appends v as a postcard signed integer.
RawBytes appends b without a length prefix.
String appends s as a postcard string.
Uint appends v as a postcard unsigned integer.
*Encoder : github.com/apache/arrow-go/v18/internal/hashing.ByteSlice
*Encoder : github.com/grpc-ecosystem/grpc-gateway/v2/runtime.Encoder
*Encoder : go.uber.org/zap/zapcore.ReflectedEncoder
func EncoderTo.EncodePostcard(*Encoder) error
func github.com/tmc/go-iroh/internal/relayproto.KeyMaterialClientAuth.EncodePostcard(e *Encoder) error
EncoderTo is implemented by values that encode themselves to e.
( EncoderTo) EncodePostcard(*Encoder) error
github.com/tmc/go-iroh/internal/relayproto.KeyMaterialClientAuth
Marshaler is implemented by values with a custom postcard representation.
( Marshaler) MarshalPostcard() ([]byte, error)
Package-Level Functions (total 3)
Marshal encodes v in postcard format.
NewDecoder returns a decoder reading b.
Unmarshal decodes postcard data into v.
Package-Level Variables (only one)
ErrTrailingBytes is returned when Unmarshal does not consume all input.
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |