Documentation ¶
Index ¶
Constants ¶
View Source
const (
Port = 10000
)
Variables ¶
View Source
var (
DemoAddr string = fmt.Sprintf("localhost:%d", Port)
)
Functions ¶
This section is empty.
Types ¶
type MicroServer ¶
type MicroServer struct {
// contains filtered or unexported fields
}
MicroServer represents a microservice server instance
func New ¶
func New(serverName string, l net.Listener) *MicroServer
New returns a microserver instance
func (*MicroServer) Echo ¶
func (m *MicroServer) Echo(c context.Context, s *pb.EchoMessage) (*pb.EchoMessage, error)
Echo implementation Implement EchoService interface
Click to show internal directories.
Click to hide internal directories.