codec

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProtoToJSON

func ConvertProtoToJSON(protoFile *ProtoFile) (map[string]interface{}, error)

Types

type Codec

type Codec struct{}

func (*Codec) Unmarshal

func (c *Codec) Unmarshal(input []byte, v interface{}) error

type Enum

type Enum struct {
	Name   string
	Values map[string]int
}

type Field

type Field struct {
	Name   string
	Type   string
	Number int
}

type Message

type Message struct {
	Name   string
	Fields map[string]Field
}

type ProtoFile

type ProtoFile struct {
	PackageName string
	Messages    map[string]Message
	Enums       map[string]Enum
}

Jump to

Keyboard shortcuts

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