Move package comment

This commit is contained in:
Adrian Brink 2017-05-09 12:40:18 +02:00
parent 840e658ec0
commit e43bcf3f26
2 changed files with 12 additions and 13 deletions

View File

@ -1,13 +1,3 @@
/*
Package server is used to start a new ABCI server.
It defines the struct for gRPC server settings, and functions for:
* Starting a new gRPC server
* Stopping a gRPC server
*/
package server
import (
@ -22,7 +12,7 @@ import (
// var maxNumberConnections = 2
//GRPCServer is used to set the protocol and address for gRPC.
//GRPCServer is used to set the protocol and address for gRPC.
type GRPCServer struct {
cmn.BaseService
@ -49,7 +39,7 @@ func NewGRPCServer(protoAddr string, app types.ABCIApplicationServer) (cmn.Servi
return s, err
}
//Onstart registers a new gRPC service and tells that service to listen on the port that is set in NewGRPCServer.
//Onstart registers a new gRPC service and tells that service to listen on the port that is set in NewGRPCServer.
func (s *GRPCServer) OnStart() error {
s.BaseService.OnStart()
ln, err := net.Listen(s.proto, s.addr)
@ -63,7 +53,7 @@ func (s *GRPCServer) OnStart() error {
return nil
}
//OnStop is called when a gRPC server is stopped.
//OnStop is called when a gRPC server is stopped.
func (s *GRPCServer) OnStop() {
s.BaseService.OnStop()
s.server.Stop()

View File

@ -1,3 +1,12 @@
/*
Package server is used to start a new ABCI server.
It contains two server implementation:
* gRPC server
* socket server
*/
package server
import (