protogen

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package protogen implements a generator for SAI to protobuf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(doc *docparser.SAIInfo, sai *saiast.SAIAPI) (map[string]string, error)

Generates returns a map of files containing the generated code code.

func SaiTypeToProtoType

func SaiTypeToProtoType(saiType string, xmlInfo *docparser.SAIInfo) (string, bool, error)

saiTypeToProtoType returns the protobuf type string for a SAI type. example: sai_u8_list_t -> repeated uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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