transport

package
v0.0.0-...-0c93219 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

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

func NewGRPC

func NewGRPC(desc *grpc.ServiceDesc, handler any) *GRPC

func (*GRPC) Register

func (g *GRPC) Register(logger *slog.Logger, traCfg cfg.Transport)

func (*GRPC) Serve

func (g *GRPC) Serve(ctx context.Context, cancel context.CancelFunc)

type Transport

type Transport interface {
	Register(log *slog.Logger, cfg cfg.Transport)
	Serve(ctx context.Context, cancel context.CancelFunc)
}

Jump to

Keyboard shortcuts

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