rpc

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorNoMoreClient = errors.New("no more clients")

Functions

func WithClients

func WithClients[C any, V any](clients *Clients[C], f func(C) (v V, err error)) (v V, err error)

Types

type Clients

type Clients[C any] struct {
	// contains filtered or unexported fields
}

func NewClients

func NewClients[C any]() *Clients[C]

func (*Clients[C]) Add

func (c *Clients[C]) Add(client C)

func (*Clients[C]) Next

func (c *Clients[C]) Next() (client C, err error)

Jump to

Keyboard shortcuts

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