event

package
v0.0.0-...-98df32a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: BSD-3-Clause Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(i *EventInput) (*Event, error)

func (*Event) CircleID

func (e *Event) CircleID() *circle.CircleID

func (*Event) Guest

func (e *Event) Guest() *GuestCollection

func (*Event) ID

func (e *Event) ID() *EventID

func (*Event) Identical

func (en *Event) Identical(e *Event) bool

func (*Event) JoinGuest

func (e *Event) JoinGuest(g *guest.Guest) *Event

func (*Event) Name

func (e *Event) Name() *Name

func (*Event) Path

func (e *Event) Path() *path.Path

func (*Event) RemoveGuest

func (e *Event) RemoveGuest(i *user.UserID) *Event

type EventFactory

type EventFactory interface {
	Create(circleID *circle.CircleID, name *string) (*Event, error)
}

type EventFactoryImpl

type EventFactoryImpl struct{}

func (EventFactoryImpl) Create

func (f EventFactoryImpl) Create(circleID *circle.CircleID, name *string) (*Event, error)

type EventID

type EventID struct {
	*common.UUID
}

func NewEventID

func NewEventID(v string) (*EventID, error)

type EventInput

type EventInput struct {
	ID       string
	CircleID string
	Name     string
	Path     string
	Guest    []guest.GuestInput
}

type EventRepository

type EventRepository interface {
	Create(*Event) error
	Find(*EventID) (*Event, error)
	FindByPath(*path.Path) (*Event, error)
	Update(after *Event, before *Event) error
}

type GuestCollection

type GuestCollection struct {
	// contains filtered or unexported fields
}

func NewEmptyGuestCollection

func NewEmptyGuestCollection() *GuestCollection

func NewGuestCollection

func NewGuestCollection(i []guest.GuestInput) (*GuestCollection, error)

func (*GuestCollection) Append

func (c *GuestCollection) Append(g *guest.Guest) *GuestCollection

func (*GuestCollection) AppendOrUpdate

func (c *GuestCollection) AppendOrUpdate(g *guest.Guest) *GuestCollection

func (*GuestCollection) Empty

func (c *GuestCollection) Empty() bool

func (*GuestCollection) ExistsIdentical

func (c *GuestCollection) ExistsIdentical(g *guest.Guest) bool

func (*GuestCollection) IdenticalItem

func (c *GuestCollection) IdenticalItem(g *guest.Guest) *guest.Guest

func (*GuestCollection) Items

func (c *GuestCollection) Items() []guest.Guest

func (*GuestCollection) Len

func (c *GuestCollection) Len() int

func (*GuestCollection) Nth

func (c *GuestCollection) Nth(n int) *guest.Guest

func (*GuestCollection) Remove

func (c *GuestCollection) Remove(id *user.UserID) *GuestCollection

func (*GuestCollection) Update

func (c *GuestCollection) Update(g *guest.Guest) *GuestCollection

type Name

type Name string

func NewName

func NewName(v string) (*Name, error)

func (*Name) Equals

func (v *Name) Equals(n *Name) bool

func (*Name) String

func (v *Name) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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