Documentation ¶
Index ¶
- type Cookie
- type CookieMethods
- 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
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
func NewCookieFromModel ¶
func NewCookieFromModel(model *repository.Model) *Cookie
func (*Cookie) ToModel ¶
func (e *Cookie) ToModel() *repository.Model
type CookieMethods ¶
type CookieMethods struct {
// contains filtered or unexported fields
}
type Methods ¶
type Methods interface { Create(ctx context.Context, title string, category *string) (*Cookie, error) ListAll(ctx context.Context) ([]*Cookie, error) Delete(ctx context.Context, cookieID xid.ID) error Modify(ctx context.Context, cookieID xid.ID, title string, category *string) (*Cookie, error) }
func NewCookieMethods ¶
func NewCookieMethods(repository repository.Repository) Methods
type MockMethods ¶
func NewMockMethods ¶
func NewMockMethods() *MockMethods
Click to show internal directories.
Click to hide internal directories.