grpc

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package grpc provides grpc client and server implementations.

Package grpc provides grpc client and server implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(address string) (*grpc.ClientConn, error)

GetConnection is get connection of grpc.

Types

type Server

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

Server is struct that provides server common infomation.

func (*Server) Start

func (this *Server) Start(address string, server implementServer) error

Start is start the server.

ex) err := server.Start(":10000", &Sample.Server{})

func (*Server) Stop

func (this *Server) Stop() error

Stop is stop the server.

ex) err := server.Stop()

Directories

Path Synopsis
Package sample provides sample grpc interface.
Package sample provides sample grpc interface.

Jump to

Keyboard shortcuts

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