Versions in this module Expand all Collapse all v0 v0.0.6 May 11, 2020 v0.0.5 May 11, 2020 Changes in this version + type Cookie struct + Category *string + Fortune string + ID xid.ID + Title string + func NewCookie(title string, category *string, fortune string) *Cookie + func NewCookieFromModel(model *repository.Model) *Cookie + func (e *Cookie) ToModel() *repository.Model + type CookieMethods struct + func (m *CookieMethods) Create(ctx context.Context, title string, category *string) (*Cookie, error) + func (m *CookieMethods) Delete(ctx context.Context, cookieID xid.ID) error + func (m *CookieMethods) ListAll(ctx context.Context) ([]*Cookie, error) + func (m *CookieMethods) Modify(ctx context.Context, cookieID xid.ID, title string, category *string) (*Cookie, error) + type Methods interface + Create func(ctx context.Context, title string, category *string) (*Cookie, error) + Delete func(ctx context.Context, cookieID xid.ID) error + ListAll func(ctx context.Context) ([]*Cookie, error) + Modify func(ctx context.Context, cookieID xid.ID, title string, category *string) (*Cookie, error) + func NewCookieMethods(repository repository.Repository) Methods + type MockMethods struct + func NewMockMethods() *MockMethods + func (m *MockMethods) Create(ctx context.Context, title string, category *string) (*Cookie, error) + func (m *MockMethods) Delete(ctx context.Context, cookieID xid.ID) error + func (m *MockMethods) ListAll(ctx context.Context) ([]*Cookie, error) + func (m *MockMethods) Modify(ctx context.Context, cookieID xid.ID, title string, category *string) (*Cookie, error)