Documentation
¶
Overview ¶
Package farp provides Forge-specific integrations for the FARP protocol.
This package wraps and extends github.com/xraph/farp with Forge-specific functionality, particularly for schema generation from Forge routers.
Deprecated: This internal package is being phased out in favor of the external github.com/xraph/farp package. New code should import the external package directly. This package is maintained only for Forge-specific integrations (providers/openapi and providers/asyncapi).
Migration Guide ¶
Old import:
import "github.com/xraph/forge/farp"
New import:
import "github.com/xraph/farp"
The providers remain in this package for Forge-specific integration:
import "github.com/xraph/forge/farp/providers/openapi" import "github.com/xraph/forge/farp/providers/asyncapi"
For full FARP documentation, see: https://github.com/xraph/farp
Index ¶
- Constants
- Variables
- type Application
- type Capability
- type DiscoveryEvent
- type EventType
- type GatewayNode
- type GatewayNodeConfig
- type LocationType
- type ManifestEvent
- type RegistryConfig
- type SchemaDescriptor
- type SchemaEndpoints
- type SchemaEvent
- type SchemaLocation
- type SchemaManifest
- type SchemaProvider
- type SchemaRegistry
- type SchemaType
- type ServiceDiscovery
- type ServiceInstance
- type ServiceNode
- type ServiceNodeConfig
- type ValidationError
Constants ¶
const ( SchemaTypeOpenAPI = farp.SchemaTypeOpenAPI SchemaTypeAsyncAPI = farp.SchemaTypeAsyncAPI SchemaTypeGRPC = farp.SchemaTypeGRPC SchemaTypeGraphQL = farp.SchemaTypeGraphQL SchemaTypeORPC = farp.SchemaTypeORPC SchemaTypeThrift = farp.SchemaTypeThrift SchemaTypeAvro = farp.SchemaTypeAvro SchemaTypeCustom = farp.SchemaTypeCustom LocationTypeHTTP = farp.LocationTypeHTTP LocationTypeRegistry = farp.LocationTypeRegistry LocationTypeInline = farp.LocationTypeInline CapabilityREST = farp.CapabilityREST CapabilityGRPC = farp.CapabilityGRPC CapabilityWebSocket = farp.CapabilityWebSocket CapabilitySSE = farp.CapabilitySSE CapabilityGraphQL = farp.CapabilityGraphQL CapabilityMQTT = farp.CapabilityMQTT CapabilityAMQP = farp.CapabilityAMQP EventTypeAdded = farp.EventTypeAdded EventTypeUpdated = farp.EventTypeUpdated EventTypeRemoved = farp.EventTypeRemoved ProtocolVersion = farp.ProtocolVersion )
Constant re-exports.
Variables ¶
var ( ErrInvalidManifest = farp.ErrInvalidManifest ErrInvalidSchema = farp.ErrInvalidSchema ErrInvalidLocation = farp.ErrInvalidLocation ErrUnsupportedType = farp.ErrUnsupportedType ErrChecksumMismatch = farp.ErrChecksumMismatch ErrIncompatibleVersion = farp.ErrIncompatibleVersion ErrManifestNotFound = farp.ErrManifestNotFound ErrSchemaNotFound = farp.ErrSchemaNotFound )
Error re-exports.
var ( NewServiceNode = farpdiscovery.NewServiceNode NewGatewayNode = farpdiscovery.NewGatewayNode )
Discovery function re-exports.
var ( NewManifest = farp.NewManifest CalculateManifestChecksum = farp.CalculateManifestChecksum CalculateSchemaChecksum = farp.CalculateSchemaChecksum FromJSON = farp.FromJSON ValidateSchemaDescriptor = farp.ValidateSchemaDescriptor DiffManifests = farp.DiffManifests IsCompatible = farp.IsCompatible DefaultRegistryConfig = farp.DefaultRegistryConfig )
Function re-exports.
Functions ¶
This section is empty.
Types ¶
type DiscoveryEvent ¶ added in v1.6.0
type DiscoveryEvent = farpdiscovery.DiscoveryEvent
Discovery type re-exports (new in FARP v1.1+).
type GatewayNode ¶ added in v1.6.0
type GatewayNode = farpdiscovery.GatewayNode
Discovery type re-exports (new in FARP v1.1+).
type GatewayNodeConfig ¶ added in v1.6.0
type GatewayNodeConfig = farpdiscovery.GatewayNodeConfig
Discovery type re-exports (new in FARP v1.1+).
type ServiceDiscovery ¶ added in v1.6.0
type ServiceDiscovery = farpdiscovery.ServiceDiscovery
Discovery type re-exports (new in FARP v1.1+).
type ServiceInstance ¶ added in v1.6.0
type ServiceInstance = farpdiscovery.ServiceInstance
Discovery type re-exports (new in FARP v1.1+).
type ServiceNode ¶ added in v1.6.0
type ServiceNode = farpdiscovery.ServiceNode
Discovery type re-exports (new in FARP v1.1+).
type ServiceNodeConfig ¶ added in v1.6.0
type ServiceNodeConfig = farpdiscovery.ServiceNodeConfig
Discovery type re-exports (new in FARP v1.1+).