containers

package
v0.0.0-...-d6cb553 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Done = errors.New("no more items in iterator")

Functions

func GetFriendIds

func GetFriendIds(user int64) *friendIterator

Mocks out a remote friend list lookup.

func GetFriends_ErrGroup

func GetFriends_ErrGroup(ctx context.Context, user int64) (map[string]*User, error)

func GetFriends_Parallel

func GetFriends_Parallel(ctx context.Context, user int64) (map[string]*User, error)

func GetFriends_Selects

func GetFriends_Selects(ctx context.Context, user int64) (map[string]*User, error)

func GetFriends_Serial

func GetFriends_Serial(ctx context.Context, user int64) (map[string]*User, error)

Types

type Iterator

type Iterator[T []T] struct {
	// contains filtered or unexported fields
}

func (Iterator[T]) Next

func (it Iterator[T]) Next(ctx context.Context) (*T, error)

type User

type User struct {
	Id   int64
	Name string
}

func GetUserProfile

func GetUserProfile(ctx context.Context, id int64) (*User, error)

Mocks out a user profile lookup.

Jump to

Keyboard shortcuts

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