transport

package
v1.615.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled added in v1.176.0

func IsEnabled(cfg *Config) bool

IsEnabled for transport.

func NewServers added in v1.125.0

func NewServers(params ServersParams) []*server.Service

NewServers for transport.

func Register added in v1.70.0

func Register(lc fx.Lifecycle, servers []*server.Service)

Register all the transports.

Types

type Config

type Config struct {
	GRPC *grpc.Config `yaml:"grpc,omitempty" json:"grpc,omitempty" toml:"grpc,omitempty"`
	HTTP *http.Config `yaml:"http,omitempty" json:"http,omitempty" toml:"http,omitempty"`
}

Config for transport.

type ServersParams added in v1.492.0

type ServersParams struct {
	fx.In

	HTTP  *http.Server
	GRPC  *grpc.Server
	Debug *debug.Server
}

ServersParams for transport.

Jump to

Keyboard shortcuts

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