app

package
v0.0.0-...-7c5da1f Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

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) Cache

func (c *Context) Cache() shared.Cache

func (*Context) CommentRepo

func (c *Context) CommentRepo() discussion.CommentRepo

func (*Context) ConfirmOAuth2UseCase

func (c *Context) ConfirmOAuth2UseCase() *auth.ConfirmOAuth2UseCase

func (*Context) DB

func (c *Context) DB() *sql.DB

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) Logger

func (c *Context) Logger() *log.Logger

func (*Context) Migration

func (c *Context) Migration() *migration.Migration

func (*Context) OAuth2Provider

func (c *Context) OAuth2Provider() auth.OAuth2Provider

func (*Context) PostRepo

func (c *Context) PostRepo() blog.PostRepo

func (*Context) PubSub

func (c *Context) PubSub() *memory.PubSub

func (*Context) Renderer

func (c *Context) Renderer() blog.Renderer

func (*Context) RequestOAuth2UseCase

func (c *Context) RequestOAuth2UseCase() *auth.RequestOAuth2UseCase

func (*Context) Router

func (c *Context) Router() http.Handler

func (*Context) SaveAuthorUseCase

func (c *Context) SaveAuthorUseCase() *discussion.SaveAuthorUseCase

func (*Context) StateRepo

func (c *Context) StateRepo() auth.StateRepo

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) UseCases

func (c *Context) UseCases() *webports.UseCases

func (*Context) UserRepo

func (c *Context) UserRepo() auth.UserRepo

func (*Context) ViewPostUseCase

func (c *Context) ViewPostUseCase() *blog.ViewPostUseCase

func (*Context) WebServer

func (c *Context) WebServer() *web.Server

Jump to

Keyboard shortcuts

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