tuna

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 6 Imported by: 0

README

Tuna

Tuna is a gRPC server.

Installation

go get -u github.com/Kamva/tuna

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
}

GRPC is responsible for handling gRPC server.

func New

func New(ctx context.Context, opt ...grpc.ServerOption) *GRPC

New instantiate the GRPC handler.

func (*GRPC) Context

func (g *GRPC) Context() context.Context

Context returns the context used in gRPC.

func (*GRPC) Run

func (g *GRPC) Run(listener net.Listener)

Run starts the gRPC server on given address.

func (*GRPC) Server

func (g *GRPC) Server() *grpc.Server

Server returns gRPC server.

func (*GRPC) Shutdown added in v0.1.2

func (g *GRPC) Shutdown()

Shutdown shutting down grpc server gracefully.

Jump to

Keyboard shortcuts

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