transport

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package transport wraps server creation for common protocols like http, grpc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
}

type Server

type Server interface {
	// ListenAddr return host:port so we can log it before actually start service
	ListenAddr() string
	// Port is to used avoid different transport using same port
	Port() int
	// Run starts the server and blocks current goroutine
	Run() error
}

TODO: tracing?

Directories

Path Synopsis
Package grpc wraps google.golang.org/grpc
Package grpc wraps google.golang.org/grpc
Package http wraps net/http
Package http wraps net/http

Jump to

Keyboard shortcuts

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