ports

package
v0.0.0-...-943fa91 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmOAuth2UseCase

type ConfirmOAuth2UseCase interface {
	Run(ctx context.Context, state, code string) (string, error)
}

type ListCommentsUseCase

type ListCommentsUseCase interface {
	Run(ctx context.Context, subjectID string) ([]*discussion.Comment, error)
}

type ListPostUseCase

type ListPostUseCase interface {
	Run() ([]blog.RenderedPost, error)
}

type RequestOAuth2UseCase

type RequestOAuth2UseCase interface {
	Run() (string, error)
}

type UseCases

type UseCases struct {
	ViewPost      ViewPostUseCase
	ListPosts     ListPostUseCase
	RequestOAuth2 RequestOAuth2UseCase
	ConfirmOAuth2 ConfirmOAuth2UseCase
	ListComments  ListCommentsUseCase
}

type ViewPostUseCase

type ViewPostUseCase interface {
	Run(path string) (blog.RenderedPost, error)
}

Jump to

Keyboard shortcuts

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