kratos: github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/encoding/json Index | Files

package codec

import "github.com/go-kratos/kratos/pkg/net/rpc/warden/internal/encoding/json"

Index

Package Files

json.go

type JSON Uses

type JSON struct {
    jsonpb.Marshaler
    jsonpb.Unmarshaler
}

JSON is impl of encoding.Codec

func (JSON) Marshal Uses

func (j JSON) Marshal(v interface{}) (out []byte, err error)

Marshal is json marshal

func (JSON) Name Uses

func (j JSON) Name() string

Name is name of JSON

func (JSON) Unmarshal Uses

func (j JSON) Unmarshal(data []byte, v interface{}) (err error)

Unmarshal is json unmarshal

Package codec imports 5 packages (graph) and is imported by 2 packages. Updated 2020-04-23. Refresh now. Tools for package owners.