standards

package
v0.1.159 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 4 Imported by: 5

Documentation

Overview

Package standards defines the small set of API-type constants used across the codefly stack: TCP, HTTP, REST, GRPC.

These constants flow through endpoint definitions and network instances; agents and the gateway use them to pick the right transport and code-generation pipeline for each declared endpoint.

Index

Constants

View Source
const OpenAPIPath = "openapi/api.swagger.json"
View Source
const ProtoPath = "proto/api.proto"

Variables

View Source
var (
	Unknown = "unknown"
	GRPC    = "grpc"
	REST    = "rest"
	HTTP    = "http"
	TCP     = "tcp"
	CONNECT = "connect"
)

Functions

func APIS

func APIS() []string

func IsSupportedAPI

func IsSupportedAPI(kind string) error

func LocalhostAddress

func LocalhostAddress(api string) string

func Port

func Port(api string) uint16

func PortAddress

func PortAddress(api string) string

func PortAddressForEndpoint

func PortAddressForEndpoint(endpoint string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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