gensdk

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2025 Prabhjot Singh Sethi, All Rights reserved Author: Prabhjot Singh Sethi <prabhjot.sethi@gmail.com>

Package gensdk provides a code generator for SDK files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasQueryParam

func HasQueryParam(b *descriptor.Binding) bool

HasQueryParam determines if the binding needs parameters in query string.

It sometimes returns true even though actually the binding does not need. But it is not serious because it just results in a small amount of extra codes generated.

func New

func New(reg *descriptor.Registry, useRequestContext bool, registerFuncSuffix string,
	allowPatchFeature, standalone bool) gen.Generator

New returns a new generator which generates grpc gateway files.

func UpdateReserveGoImports

func UpdateReserveGoImports(reg *descriptor.Registry, packages []string) []descriptor.GoPackage

Types

This section is empty.

Jump to

Keyboard shortcuts

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