Documentation ¶
Index ¶
- type Context
- func (c *Context) Cache() shared.Cache
- func (c *Context) CommentRepo() discussion.CommentRepo
- func (c *Context) ConfirmOAuth2UseCase() *auth.ConfirmOAuth2UseCase
- func (c *Context) DB() *sql.DB
- func (c *Context) FakeOAuth2Provider() auth.OAuth2Provider
- func (c *Context) GithubOAuth2Provider() auth.OAuth2Provider
- func (c *Context) IDGenerator() shared.IDGenerator
- func (c *Context) ListCommentsUseCase() *discussion.ListCommentsUseCase
- func (c *Context) ListPostsUseCase() *blog.ListPostsUseCase
- func (c *Context) Logger() *log.Logger
- func (c *Context) Migration() *migration.Migration
- func (c *Context) OAuth2Provider() auth.OAuth2Provider
- func (c *Context) PostRepo() blog.PostRepo
- func (c *Context) PubSub() *memory.PubSub
- func (c *Context) Renderer() blog.Renderer
- func (c *Context) RequestOAuth2UseCase() *auth.RequestOAuth2UseCase
- func (c *Context) Router() http.Handler
- func (c *Context) SaveAuthorUseCase() *discussion.SaveAuthorUseCase
- func (c *Context) StateRepo() auth.StateRepo
- func (c *Context) SubscriptionUseCases() *subscriptions.UseCases
- func (c *Context) Subscriptions() *subscriptions.Subscriptions
- func (c *Context) TokenEncoder() auth.TokenEncoder
- func (c *Context) TransactionManager() shared.TransactionManager
- func (c *Context) UseCases() *webports.UseCases
- func (c *Context) UserRepo() auth.UserRepo
- func (c *Context) ViewPostUseCase() *blog.ViewPostUseCase
- func (c *Context) WebServer() *web.Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Env string Port int TemplatePath string StaticPath string PostPath string MigrationsPath string BaseURL string GitHubClientID string GitHubClientSecret string AuthTokenSecret string PostgresURL string PostgresTestURL string // contains filtered or unexported fields }
func NewContext ¶
func NewContext() *Context
func (*Context) CommentRepo ¶
func (c *Context) CommentRepo() discussion.CommentRepo
func (*Context) ConfirmOAuth2UseCase ¶
func (c *Context) ConfirmOAuth2UseCase() *auth.ConfirmOAuth2UseCase
func (*Context) FakeOAuth2Provider ¶
func (c *Context) FakeOAuth2Provider() auth.OAuth2Provider
func (*Context) GithubOAuth2Provider ¶
func (c *Context) GithubOAuth2Provider() auth.OAuth2Provider
func (*Context) IDGenerator ¶
func (c *Context) IDGenerator() shared.IDGenerator
func (*Context) ListCommentsUseCase ¶
func (c *Context) ListCommentsUseCase() *discussion.ListCommentsUseCase
func (*Context) ListPostsUseCase ¶
func (c *Context) ListPostsUseCase() *blog.ListPostsUseCase
func (*Context) OAuth2Provider ¶
func (c *Context) OAuth2Provider() auth.OAuth2Provider
func (*Context) RequestOAuth2UseCase ¶
func (c *Context) RequestOAuth2UseCase() *auth.RequestOAuth2UseCase
func (*Context) SaveAuthorUseCase ¶
func (c *Context) SaveAuthorUseCase() *discussion.SaveAuthorUseCase
func (*Context) SubscriptionUseCases ¶
func (c *Context) SubscriptionUseCases() *subscriptions.UseCases
func (*Context) Subscriptions ¶
func (c *Context) Subscriptions() *subscriptions.Subscriptions
func (*Context) TokenEncoder ¶
func (c *Context) TokenEncoder() auth.TokenEncoder
func (*Context) TransactionManager ¶
func (c *Context) TransactionManager() shared.TransactionManager
func (*Context) ViewPostUseCase ¶
func (c *Context) ViewPostUseCase() *blog.ViewPostUseCase
Click to show internal directories.
Click to hide internal directories.