golang

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator() generators.LanguageGenerator

NewGenerator creates a new Go generator

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator generates Go clients

func (*Generator) Generate

Generate generates the Go client

func (*Generator) Name

func (g *Generator) Name() string

Name returns the generator name

func (*Generator) SupportedFeatures

func (g *Generator) SupportedFeatures() []string

SupportedFeatures returns supported features

func (*Generator) Validate

func (g *Generator) Validate(specIface generators.APISpec) error

Validate validates the spec for Go generation

type RESTGenerator

type RESTGenerator struct {
	// contains filtered or unexported fields
}

RESTGenerator generates REST client code

func NewRESTGenerator

func NewRESTGenerator() *RESTGenerator

NewRESTGenerator creates a new REST generator

func (*RESTGenerator) Generate

func (r *RESTGenerator) Generate(spec *client.APISpec, config client.GeneratorConfig) string

Generate generates the rest.go file

type SSEGenerator

type SSEGenerator struct {
	// contains filtered or unexported fields
}

SSEGenerator generates SSE (Server-Sent Events) client code

func NewSSEGenerator

func NewSSEGenerator() *SSEGenerator

NewSSEGenerator creates a new SSE generator

func (*SSEGenerator) Generate

func (s *SSEGenerator) Generate(spec *client.APISpec, config client.GeneratorConfig) string

Generate generates the sse.go file

type TypesGenerator

type TypesGenerator struct{}

TypesGenerator generates Go type definitions

func NewTypesGenerator

func NewTypesGenerator() *TypesGenerator

NewTypesGenerator creates a new types generator

func (*TypesGenerator) Generate

func (t *TypesGenerator) Generate(spec *client.APISpec, config client.GeneratorConfig) string

Generate generates the types.go file

type WebSocketGenerator

type WebSocketGenerator struct {
	// contains filtered or unexported fields
}

WebSocketGenerator generates WebSocket client code

func NewWebSocketGenerator

func NewWebSocketGenerator() *WebSocketGenerator

NewWebSocketGenerator creates a new WebSocket generator

func (*WebSocketGenerator) Generate

func (w *WebSocketGenerator) Generate(spec *client.APISpec, config client.GeneratorConfig) string

Generate generates the websocket.go file

type WebTransportGenerator

type WebTransportGenerator struct{}

WebTransportGenerator generates Go WebTransport client code

func NewWebTransportGenerator

func NewWebTransportGenerator() *WebTransportGenerator

NewWebTransportGenerator creates a new WebTransport generator

func (*WebTransportGenerator) Generate

func (w *WebTransportGenerator) Generate(spec *client.APISpec, config client.GeneratorConfig) string

Generate generates the WebTransport clients

Jump to

Keyboard shortcuts

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