svc

package
v0.0.0-...-cbd8b7f Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const HelloServiceName = "github.com/Minnull/practice-golang/tree/main/02_advanced/01_rpc/02_standard/svc/hello_service_interface"

Variables

This section is empty.

Functions

func RegisterHelloService

func RegisterHelloService(svc HelloServiceInterface) error

Types

type HelloServiceClient

type HelloServiceClient struct {
	*rpc.Client
}

func DialHelloService

func DialHelloService(network, address string) (*HelloServiceClient, error)

func (*HelloServiceClient) Hello

func (p *HelloServiceClient) Hello(request string, reply *string) error

type HelloServiceInterface

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

Jump to

Keyboard shortcuts

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