transportir

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Name         string
	Description  string
	Method       *expr.MethodExpr
	Service      *Service
	Requirements []*expr.SecurityExpr
	Request      *Request
	Response     *Response
	Errors       []*Error
	Stream       *Stream
}

func BuildEndpoint

func BuildEndpoint(service *Service, endpoint *expr.GRPCEndpointExpr) *Endpoint

type Error

type Error struct {
	Name      string
	Type      expr.DataType
	Attribute *expr.AttributeExpr
	Response  *Response
}

type Request

type Request struct {
	Payload             *expr.AttributeExpr
	Message             *expr.AttributeExpr
	ProtoMessage        *expr.AttributeExpr
	StreamingPayload    *expr.AttributeExpr
	StreamingMessage    *expr.AttributeExpr
	ProtoStreamingInput *expr.AttributeExpr
	// ProtoStreamEnvelope is the synthesized envelope message that
	// carries both the one-shot payload and streaming payload items
	// through a single gRPC stream when a method declares both
	// Payload(...) and StreamingPayload(...).
	ProtoStreamEnvelope *expr.AttributeExpr
	Metadata            *expr.MappedAttributeExpr
}

type Response

type Response struct {
	Result       *expr.AttributeExpr
	Message      *expr.AttributeExpr
	ProtoMessage *expr.AttributeExpr
	StatusCode   int
	Description  string
	Headers      *expr.MappedAttributeExpr
	Trailers     *expr.MappedAttributeExpr
}

type Service

type Service struct {
	Name        string
	Description string
	Expr        *expr.GRPCServiceExpr
	Endpoints   []*Endpoint
}

func BuildService

func BuildService(svc *expr.GRPCServiceExpr) *Service

type Stream

type Stream struct {
	IsStreaming        bool
	IsPayloadStreaming bool
}

Jump to

Keyboard shortcuts

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