service

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GobDecode

func GobDecode(data []byte, value any) error

func GobEncode

func GobEncode(val any) ([]byte, error)

Types

type HelloService

type HelloService interface {
	Greet(string, *string) error
}

通过这个接口约束客户端的调用和服务端的实现 只要该接口公开, 是不是对于client 就完全知道该如何使用该RPC client.Greet("alice", &resp)

Jump to

Keyboard shortcuts

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