pool

package
v0.0.0-...-31ad618 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, userID user.ID, title, description string) error

Types

type Content

type Content struct {
}

type ID

type ID int

type Pool

type Pool struct {
	ID          ID
	User        user.User
	Title       string
	Description string
}

func FromID

func FromID(ctx context.Context, id ID) (Pool, error)

func (Pool) AddPost

func (p Pool) AddPost(ctx context.Context, postID int) error

func (Pool) RemovePost

func (p Pool) RemovePost(ctx context.Context, postID int) error

type Pools

type Pools []Pool

func OfUser

func OfUser(ctx context.Context, id user.ID) (Pools, error)

Jump to

Keyboard shortcuts

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