Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateShortcutBoundary ¶
type CreateShortcutBoundary interface {
CreateShortcut(context.Context, *CreateShortcutInput) (*CreateShortcutOutput, error)
}
CreateShortcutBoundary is Boundary of CreateShortcut
func NewCreateShortcutInteractor ¶
func NewCreateShortcutInteractor(f *entity.Factory, repo ShortcutRepository) CreateShortcutBoundary
type CreateShortcutInput ¶
type CreateShortcutInput struct {
LongURL string `json:"long_url"`
}
CreateShortcutInput is InputData for CreateShortcutBoundary
type CreateShortcutInteractor ¶
type CreateShortcutInteractor struct {
// contains filtered or unexported fields
}
func (*CreateShortcutInteractor) CreateShortcut ¶
func (i *CreateShortcutInteractor) CreateShortcut(ctx context.Context, input *CreateShortcutInput) (*CreateShortcutOutput, error)
type CreateShortcutOutput ¶
type CreateShortcutOutput struct { ShortcutID entity.ShortcutID LongURL string }
CreateShortcutInput is OutputData for CreateShortcutBoundary
type GetShortcutBoundary ¶
type GetShortcutBoundary interface {
GetShortcut(context.Context, *GetShortcutInput) (*GetShortcutOutput, error)
}
GetShortcutBoundary is Boundary of GetShortcut
func NewGetShortcutInteractor ¶
func NewGetShortcutInteractor(f *entity.Factory, repo ShortcutRepository) GetShortcutBoundary
type GetShortcutInput ¶
type GetShortcutInput struct {
ShortcutID string `json:"shortcut_id"`
}
GetShortcutInput is InputData for GetShortcutBoundary
type GetShortcutInteractor ¶
type GetShortcutInteractor struct {
// contains filtered or unexported fields
}
func (*GetShortcutInteractor) GetShortcut ¶
func (i *GetShortcutInteractor) GetShortcut(ctx context.Context, input *GetShortcutInput) (*GetShortcutOutput, error)
type GetShortcutOutput ¶
type GetShortcutOutput struct {
RedirectURL string
}
GetShortcutInput is OutputData for GetShortcutBoundary
type ShortcutRepository ¶
type Usecase ¶
type Usecase struct { GetShortcutBoundary CreateShortcutBoundary }
Usecase is is a container for Boundarys
Click to show internal directories.
Click to hide internal directories.