server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const HelloServiceName = "test/HelloService"

HelloServiceName name, path is not likely to golang 1.declare Name and interface

Variables

This section is empty.

Functions

func RegisterHelloService

func RegisterHelloService(svc HelloServiceInterface) error

RegisterHelloService is register service rpc 3. register the interface service

Types

type HelloServiceInterface

type HelloServiceInterface = interface {
	Hello(request string, reply *string) error
}

HelloServiceInterface method declare & assignment 2. list all interface method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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