collection

package
v0.1.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	ID          int64
	UserId      int64
	Title       string
	Description string
}

func New

func New(options ...Option) *Collection

func NewWithModel

func NewWithModel(m *model.Collection) *Collection

func (*Collection) SetId

func (c *Collection) SetId()

func (*Collection) ToModel

func (c *Collection) ToModel() *model.Collection

type Option

type Option func(*Collection)

func WithDescription

func WithDescription(description string) Option

func WithTitle

func WithTitle(name string) Option

func WithUserId

func WithUserId(userId int64) Option

Jump to

Keyboard shortcuts

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