backplanev1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 7 Imported by: 1 module, 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

View Source
var (
	InstancePhase_name = map[int32]string{
		0: "INSTANCE_PHASE_UNSPECIFIED",
		1: "INSTANCE_PHASE_STARTING",
		2: "INSTANCE_PHASE_SERVING",
		3: "INSTANCE_PHASE_STOPPING",
	}
	InstancePhase_value = map[string]int32{
		"INSTANCE_PHASE_UNSPECIFIED": 0,
		"INSTANCE_PHASE_STARTING":    1,
		"INSTANCE_PHASE_SERVING":     2,
		"INSTANCE_PHASE_STOPPING":    3,
	}
)

Enum value maps for InstancePhase.

View Source
var (
	NodeKind_name = map[int32]string{
		0: "NODE_KIND_UNSPECIFIED",
		1: "NODE_KIND_COMPONENT",
		2: "NODE_KIND_DEPENDENCY",
		3: "NODE_KIND_SINGLETON",
	}
	NodeKind_value = map[string]int32{
		"NODE_KIND_UNSPECIFIED": 0,
		"NODE_KIND_COMPONENT":   1,
		"NODE_KIND_DEPENDENCY":  2,
		"NODE_KIND_SINGLETON":   3,
	}
)

Enum value maps for NodeKind.

View Source
var (
	ConfigSource_name = map[int32]string{
		0: "CONFIG_SOURCE_UNSPECIFIED",
		1: "CONFIG_SOURCE_DEFAULT",
		2: "CONFIG_SOURCE_FILE",
		3: "CONFIG_SOURCE_ENV",
		4: "CONFIG_SOURCE_KV",
	}
	ConfigSource_value = map[string]int32{
		"CONFIG_SOURCE_UNSPECIFIED": 0,
		"CONFIG_SOURCE_DEFAULT":     1,
		"CONFIG_SOURCE_FILE":        2,
		"CONFIG_SOURCE_ENV":         3,
		"CONFIG_SOURCE_KV":          4,
	}
)

Enum value maps for ConfigSource.

View Source
var File_backplanepb_v1_instance_proto protoreflect.FileDescriptor
View Source
var File_backplanepb_v1_manifest_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigSection

type ConfigSection struct {
	Keys   []string         `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	Schema *schemapb.Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	// Paths of Live fields, dot-separated ("postgres.log_level").
	Live []string `protobuf:"bytes,3,rep,name=live,proto3" json:"live,omitempty"`
	// contains filtered or unexported fields
}

The configuration. `keys` is the declaration; `schema` is optional and, when present, drives forms, validation and secret masking.

func (*ConfigSection) Descriptor deprecated

func (*ConfigSection) Descriptor() ([]byte, []int)

Deprecated: Use ConfigSection.ProtoReflect.Descriptor instead.

func (*ConfigSection) GetKeys

func (x *ConfigSection) GetKeys() []string

func (*ConfigSection) GetLive

func (x *ConfigSection) GetLive() []string

func (*ConfigSection) GetSchema

func (x *ConfigSection) GetSchema() *schemapb.Schema

func (*ConfigSection) ProtoMessage

func (*ConfigSection) ProtoMessage()

func (*ConfigSection) ProtoReflect

func (x *ConfigSection) ProtoReflect() protoreflect.Message

func (*ConfigSection) Reset

func (x *ConfigSection) Reset()

func (*ConfigSection) String

func (x *ConfigSection) String() string

type ConfigSource

type ConfigSource int32
const (
	ConfigSource_CONFIG_SOURCE_UNSPECIFIED ConfigSource = 0
	ConfigSource_CONFIG_SOURCE_DEFAULT     ConfigSource = 1
	ConfigSource_CONFIG_SOURCE_FILE        ConfigSource = 2
	ConfigSource_CONFIG_SOURCE_ENV         ConfigSource = 3
	ConfigSource_CONFIG_SOURCE_KV          ConfigSource = 4
)

func (ConfigSource) Descriptor

func (ConfigSource) Enum

func (x ConfigSource) Enum() *ConfigSource

func (ConfigSource) EnumDescriptor deprecated

func (ConfigSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConfigSource.Descriptor instead.

func (ConfigSource) Number

func (ConfigSource) String

func (x ConfigSource) String() string

func (ConfigSource) Type

type InstancePhase

type InstancePhase int32
const (
	InstancePhase_INSTANCE_PHASE_UNSPECIFIED InstancePhase = 0
	// The tree is starting: dependencies are being provided.
	InstancePhase_INSTANCE_PHASE_STARTING InstancePhase = 1
	InstancePhase_INSTANCE_PHASE_SERVING  InstancePhase = 2
	InstancePhase_INSTANCE_PHASE_STOPPING InstancePhase = 3
)

func (InstancePhase) Descriptor

func (InstancePhase) Enum

func (x InstancePhase) Enum() *InstancePhase

func (InstancePhase) EnumDescriptor deprecated

func (InstancePhase) EnumDescriptor() ([]byte, []int)

Deprecated: Use InstancePhase.Descriptor instead.

func (InstancePhase) Number

func (InstancePhase) String

func (x InstancePhase) String() string

func (InstancePhase) Type

type InstanceState

type InstanceState struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Service      string                 `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Version      string                 `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Address      string                 `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	PlatformPort uint32                 `protobuf:"varint,5,opt,name=platform_port,json=platformPort,proto3" json:"platform_port,omitempty"`
	StartedAt    *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// Effective configuration as JSON, secrets masked.
	Config []byte `protobuf:"bytes,7,opt,name=config,proto3" json:"config,omitempty"`
	// Source of every configuration path.
	Sources map[string]ConfigSource `` /* 173-byte string literal not displayed */
	// Revision from Consul KV `config/<service>/_revision` that is applied.
	ConfigRevision uint64 `protobuf:"varint,9,opt,name=config_revision,json=configRevision,proto3" json:"config_revision,omitempty"`
	// Why the last KV update was not applied; empty when applied.
	ConfigError string `protobuf:"bytes,10,opt,name=config_error,json=configError,proto3" json:"config_error,omitempty"`
	// Revision of the last KV update that was rejected; 0 when none.
	ConfigRejectedRevision uint64        `` /* 131-byte string literal not displayed */
	Phase                  InstancePhase `protobuf:"varint,12,opt,name=phase,proto3,enum=backplane.v1.InstancePhase" json:"phase,omitempty"`
	// The node tree the author composed, depth-first in creation (= start)
	// order: components, dependencies and singletons.
	Nodes []*NodeStatus `protobuf:"bytes,13,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// Connectivity reported by the SDK.
	Transports []*TransportStatus `protobuf:"bytes,14,rep,name=transports,proto3" json:"transports,omitempty"`
	SdkVersion string             `protobuf:"bytes,15,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
	Commit     string             `protobuf:"bytes,16,opt,name=commit,proto3" json:"commit,omitempty"`
	// Port of the default public port's routes; 0 when
	// none is served there.
	PublicPort uint32 `protobuf:"varint,18,opt,name=public_port,json=publicPort,proto3" json:"public_port,omitempty"`
	// Ports of the named listeners of routes, by name.
	Listeners map[string]uint32 `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

InstanceState is written by the SDK to Consul KV `backplane/services/<service>/instances/<id>` under a session with TTL, so it dies with the instance. The console shows what is really applied; the console relay takes address and port from here.

func (*InstanceState) Descriptor deprecated

func (*InstanceState) Descriptor() ([]byte, []int)

Deprecated: Use InstanceState.ProtoReflect.Descriptor instead.

func (*InstanceState) GetAddress

func (x *InstanceState) GetAddress() string

func (*InstanceState) GetCommit

func (x *InstanceState) GetCommit() string

func (*InstanceState) GetConfig

func (x *InstanceState) GetConfig() []byte

func (*InstanceState) GetConfigError

func (x *InstanceState) GetConfigError() string

func (*InstanceState) GetConfigRejectedRevision

func (x *InstanceState) GetConfigRejectedRevision() uint64

func (*InstanceState) GetConfigRevision

func (x *InstanceState) GetConfigRevision() uint64

func (*InstanceState) GetId

func (x *InstanceState) GetId() string

func (*InstanceState) GetListeners added in v0.6.58

func (x *InstanceState) GetListeners() map[string]uint32

func (*InstanceState) GetNodes

func (x *InstanceState) GetNodes() []*NodeStatus

func (*InstanceState) GetPhase

func (x *InstanceState) GetPhase() InstancePhase

func (*InstanceState) GetPlatformPort

func (x *InstanceState) GetPlatformPort() uint32

func (*InstanceState) GetPublicPort added in v0.6.58

func (x *InstanceState) GetPublicPort() uint32

func (*InstanceState) GetSdkVersion

func (x *InstanceState) GetSdkVersion() string

func (*InstanceState) GetService

func (x *InstanceState) GetService() string

func (*InstanceState) GetSources

func (x *InstanceState) GetSources() map[string]ConfigSource

func (*InstanceState) GetStartedAt

func (x *InstanceState) GetStartedAt() *timestamppb.Timestamp

func (*InstanceState) GetTransports

func (x *InstanceState) GetTransports() []*TransportStatus

func (*InstanceState) GetVersion

func (x *InstanceState) GetVersion() string

func (*InstanceState) ProtoMessage

func (*InstanceState) ProtoMessage()

func (*InstanceState) ProtoReflect

func (x *InstanceState) ProtoReflect() protoreflect.Message

func (*InstanceState) Reset

func (x *InstanceState) Reset()

func (*InstanceState) String

func (x *InstanceState) String() string

type Manifest

type Manifest struct {
	Service    string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Version    string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	SdkVersion string `protobuf:"bytes,3,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
	// The service configuration: one struct; Live fields are listed in
	// config.live and are the only ones Consul KV overrides.
	Config *ConfigSection `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// Internal API: full gRPC service names on the platform port; the only
	// methods the console relay forwards.
	InternalServices []string `protobuf:"bytes,7,rep,name=internal_services,json=internalServices,proto3" json:"internal_services,omitempty"`
	Ui               *UI      `protobuf:"bytes,11,opt,name=ui,proto3" json:"ui,omitempty"`
	// Optional telemetry view presets. Absence uses service.name convention;
	// an explicitly empty declaration disables presets, never signal ingestion.
	Telemetry *TelemetrySources `protobuf:"bytes,17,opt,name=telemetry,proto3" json:"telemetry,omitempty"`
	// contains filtered or unexported fields
}

Manifest is everything a service declares. The SDK assembles it at start and writes it to Consul KV `backplane/services/<service>/manifests/<version>` as protobuf binary. Names are mandatory; schemas are optional.

func (*Manifest) Descriptor deprecated

func (*Manifest) Descriptor() ([]byte, []int)

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

func (*Manifest) GetConfig

func (x *Manifest) GetConfig() *ConfigSection

func (*Manifest) GetInternalServices

func (x *Manifest) GetInternalServices() []string

func (*Manifest) GetSdkVersion

func (x *Manifest) GetSdkVersion() string

func (*Manifest) GetService

func (x *Manifest) GetService() string

func (*Manifest) GetTelemetry

func (x *Manifest) GetTelemetry() *TelemetrySources

func (*Manifest) GetUi

func (x *Manifest) GetUi() *UI

func (*Manifest) GetVersion

func (x *Manifest) GetVersion() string

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) ProtoReflect

func (x *Manifest) ProtoReflect() protoreflect.Message

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) String

func (x *Manifest) String() string

type NodeKind

type NodeKind int32
const (
	NodeKind_NODE_KIND_UNSPECIFIED NodeKind = 0
	NodeKind_NODE_KIND_COMPONENT   NodeKind = 1
	NodeKind_NODE_KIND_DEPENDENCY  NodeKind = 2
	NodeKind_NODE_KIND_SINGLETON   NodeKind = 3
)

func (NodeKind) Descriptor

func (NodeKind) Descriptor() protoreflect.EnumDescriptor

func (NodeKind) Enum

func (x NodeKind) Enum() *NodeKind

func (NodeKind) EnumDescriptor deprecated

func (NodeKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeKind.Descriptor instead.

func (NodeKind) Number

func (x NodeKind) Number() protoreflect.EnumNumber

func (NodeKind) String

func (x NodeKind) String() string

func (NodeKind) Type

type NodeStatus

type NodeStatus struct {

	// Place in the tree: "users", "users/templates".
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Dependencies only: whether it is ready.
	Ready bool `protobuf:"varint,2,opt,name=ready,proto3" json:"ready,omitempty"`
	// Dependencies only: why it is not ready.
	Error string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Kind  NodeKind `protobuf:"varint,4,opt,name=kind,proto3,enum=backplane.v1.NodeKind" json:"kind,omitempty"`
	// Optional dependencies do not hold readiness.
	Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"`
	// contains filtered or unexported fields
}

A node of the service tree: component, dependency or singleton.

func (*NodeStatus) Descriptor deprecated

func (*NodeStatus) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.

func (*NodeStatus) GetError

func (x *NodeStatus) GetError() string

func (*NodeStatus) GetKind added in v0.6.58

func (x *NodeStatus) GetKind() NodeKind

func (*NodeStatus) GetOptional added in v0.6.58

func (x *NodeStatus) GetOptional() bool

func (*NodeStatus) GetPath

func (x *NodeStatus) GetPath() string

func (*NodeStatus) GetReady

func (x *NodeStatus) GetReady() bool

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) ProtoReflect

func (x *NodeStatus) ProtoReflect() protoreflect.Message

func (*NodeStatus) Reset

func (x *NodeStatus) Reset()

func (*NodeStatus) String

func (x *NodeStatus) String() string

type TelemetrySourceSelector

type TelemetrySourceSelector struct {
	Resource map[string]string `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

Selectors are OR alternatives; attributes within one selector are AND exact matches against OTel resource attributes. They never grant access or identify trusted senders. The query driver maps resource names to storage fields.

func (*TelemetrySourceSelector) Descriptor deprecated

func (*TelemetrySourceSelector) Descriptor() ([]byte, []int)

Deprecated: Use TelemetrySourceSelector.ProtoReflect.Descriptor instead.

func (*TelemetrySourceSelector) GetResource

func (x *TelemetrySourceSelector) GetResource() map[string]string

func (*TelemetrySourceSelector) ProtoMessage

func (*TelemetrySourceSelector) ProtoMessage()

func (*TelemetrySourceSelector) ProtoReflect

func (x *TelemetrySourceSelector) ProtoReflect() protoreflect.Message

func (*TelemetrySourceSelector) Reset

func (x *TelemetrySourceSelector) Reset()

func (*TelemetrySourceSelector) String

func (x *TelemetrySourceSelector) String() string

type TelemetrySources

type TelemetrySources struct {
	Selectors []*TelemetrySourceSelector `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
	// contains filtered or unexported fields
}

func (*TelemetrySources) Descriptor deprecated

func (*TelemetrySources) Descriptor() ([]byte, []int)

Deprecated: Use TelemetrySources.ProtoReflect.Descriptor instead.

func (*TelemetrySources) GetSelectors

func (x *TelemetrySources) GetSelectors() []*TelemetrySourceSelector

func (*TelemetrySources) ProtoMessage

func (*TelemetrySources) ProtoMessage()

func (*TelemetrySources) ProtoReflect

func (x *TelemetrySources) ProtoReflect() protoreflect.Message

func (*TelemetrySources) Reset

func (x *TelemetrySources) Reset()

func (*TelemetrySources) String

func (x *TelemetrySources) String() string

type TransportStatus

type TransportStatus struct {

	// "consul", "nats", "temporal", "otlp".
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Connected bool   `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TransportStatus) Descriptor deprecated

func (*TransportStatus) Descriptor() ([]byte, []int)

Deprecated: Use TransportStatus.ProtoReflect.Descriptor instead.

func (*TransportStatus) GetConnected

func (x *TransportStatus) GetConnected() bool

func (*TransportStatus) GetError

func (x *TransportStatus) GetError() string

func (*TransportStatus) GetName

func (x *TransportStatus) GetName() string

func (*TransportStatus) ProtoMessage

func (*TransportStatus) ProtoMessage()

func (*TransportStatus) ProtoReflect

func (x *TransportStatus) ProtoReflect() protoreflect.Message

func (*TransportStatus) Reset

func (x *TransportStatus) Reset()

func (*TransportStatus) String

func (x *TransportStatus) String() string

type UI

type UI struct {

	// Content hash of the bundle served at GET /_backplane/ui/.
	Hash     string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	SdkMajor uint32 `protobuf:"varint,2,opt,name=sdk_major,json=sdkMajor,proto3" json:"sdk_major,omitempty"`
	// contains filtered or unexported fields
}

func (*UI) Descriptor deprecated

func (*UI) Descriptor() ([]byte, []int)

Deprecated: Use UI.ProtoReflect.Descriptor instead.

func (*UI) GetHash

func (x *UI) GetHash() string

func (*UI) GetSdkMajor

func (x *UI) GetSdkMajor() uint32

func (*UI) ProtoMessage

func (*UI) ProtoMessage()

func (*UI) ProtoReflect

func (x *UI) ProtoReflect() protoreflect.Message

func (*UI) Reset

func (x *UI) Reset()

func (*UI) String

func (x *UI) String() string

Jump to

Keyboard shortcuts

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