service

package
v2.0.78 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_NAME = "HelloService"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloRequest

type HelloRequest struct {
	MyName string `json:"my_name"`
}

type HelloResponse

type HelloResponse struct {
	Message string `json:"message"`
}

type HelloService

type HelloService interface {
	Hello(request *HelloRequest, response *HelloResponse) error
}

func NewClient

func NewClient(address string) (HelloService, error)

type HelloServiceClient

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

要封装原始的 不友好的rpc call

func (*HelloServiceClient) Hello

func (c *HelloServiceClient) Hello(in *HelloRequest, out *HelloResponse) error

Jump to

Keyboard shortcuts

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