circle

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: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

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

func NewCircle

func NewCircle(i *CircleInput) (*Circle, error)

func (*Circle) ID

func (e *Circle) ID() *CircleID

func (*Circle) Identical

func (e *Circle) Identical(c *Circle) bool

func (*Circle) Name

func (e *Circle) Name() *Name

func (*Circle) OwnerID

func (e *Circle) OwnerID() *owner.OwnerID

func (*Circle) Path

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

type CircleFactory

type CircleFactory interface {
	Create(ownerID *owner.OwnerID, name *string) (*Circle, error)
}

type CircleFactoryImpl

type CircleFactoryImpl struct{}

func (CircleFactoryImpl) Create

func (f CircleFactoryImpl) Create(ownerID *owner.OwnerID, name *string) (*Circle, error)

type CircleID

type CircleID struct {
	*common.UUID
}

func NewCircleID

func NewCircleID(v string) (*CircleID, error)

type CircleInput

type CircleInput struct {
	ID      string
	OwnerID string
	Name    string
	Path    string
}

type CircleRepository

type CircleRepository interface {
	Create(*Circle) error
	Find(*CircleID) (*Circle, error)
	FindByPath(*path.Path) (*Circle, error)
	SearchByOwner(*owner.OwnerID) (*[]CircleID, error)
}

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

Jump to

Keyboard shortcuts

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