transportir

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 1 Imported by: 0

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
	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