sdkgen

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultGenerator

type DefaultGenerator struct{}

DefaultGenerator implements Generator for multiple languages.

func NewGenerator

func NewGenerator() *DefaultGenerator

NewGenerator creates a new DefaultGenerator.

func (*DefaultGenerator) Generate

func (g *DefaultGenerator) Generate(_ context.Context, language string, _ any) ([]byte, error)

Generate produces a stub SDK for the requested language.

type Generator

type Generator interface {
	// Generate produces the source code for a specific language.
	Generate(ctx context.Context, language string, schema any) ([]byte, error)
}

Generator defines the interface for generating client SDKs.

Jump to

Keyboard shortcuts

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