introspection

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatcherStatus added in v1.5.0

type DispatcherStatus struct {
	Name            string                          `json:"name"`
	ID              string                          `json:"id"`
	Procedures      []Procedure                     `json:"procedures"`
	Inbounds        []xintrospection.InboundStatus  `json:"inbounds"`
	Outbounds       []xintrospection.OutboundStatus `json:"outbounds"`
	PackageVersions []PackageVersion                `json:"packageVersions"`
}

DispatcherStatus represent detailed introspection information about a dispatcher.

type PackageVersion added in v1.5.0

type PackageVersion struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

PackageVersion represent a package and its version.

type Procedure added in v1.5.0

type Procedure struct {
	Name      string `json:"name"`
	Encoding  string `json:"encoding"`
	Signature string `json:"signature"`
	RPCType   string `json:"rpcType"`
}

Procedure represent a registered procedure on a dispatcher.

func IntrospectProcedures added in v1.5.0

func IntrospectProcedures(routerProcs []transport.Procedure) []Procedure

IntrospectProcedures is a convenience function that translate a slice of transport.Procedure to a slice of introspection.Procedure.

func (Procedure) ProcedureName added in v1.54.0

func (p Procedure) ProcedureName() string

ProcedureName outputs a encoding-native procedure name.

Jump to

Keyboard shortcuts

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