rpc

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(addr, method string, args, reply any) error

Types

type Client

type Client struct {
	*rpc.Client
}

func NewClient

func NewClient(addr string) (*Client, error)

func (*Client) Call

func (c *Client) Call(method string, args, reply any) error

func (*Client) Close

func (c *Client) Close() error

type Server

type Server struct {
	*http.Server
}

func NewServer

func NewServer(addr string, rcvr any) (*Server, error)

Jump to

Keyboard shortcuts

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