transport

package
v1.86.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Unlicense Imports: 15 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Register added in v1.70.0

func Register(params RegisterParams)

Register all the transports.

Types

type Config

type Config struct {
	Port string      `yaml:"port" json:"port" toml:"port"`
	GRPC grpc.Config `yaml:"grpc" json:"grpc" toml:"grpc"`
	HTTP http.Config `yaml:"http" json:"http" toml:"http"`
	NSQ  nsq.Config  `yaml:"nsq" json:"nsq" toml:"nsq"`
}

Config for transport.

type RegisterParams added in v1.70.0

type RegisterParams struct {
	fx.In

	Lifecycle  fx.Lifecycle
	Shutdowner fx.Shutdowner
	Config     *Config
	HTTP       *http.Server
	GRPC       *grpc.Server
}

RegisterParams for transport.

type Server added in v1.70.1

type Server struct {
	// contains filtered or unexported fields
}

Server handles all the transports.

func NewServer added in v1.70.1

func NewServer(params RegisterParams) *Server

NewServer for transport.

func (*Server) Start added in v1.70.1

func (s *Server) Start() error

Start all the servers.

func (*Server) Stop added in v1.70.1

func (s *Server) Stop(ctx context.Context)

Stop all the servers.

Jump to

Keyboard shortcuts

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