app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const RpcPrefix = "/api"

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*chi.Mux
	// contains filtered or unexported fields
}

func New

func New(
	db *pgxpool.Pool,
	rdb *redis.Client,
	templates resources.TGetter,
	mailer mail.MailSender,
	conf *Config,
) (*App, error)

func (*App) Close

func (app *App) Close()

func (*App) OnClose

func (app *App) OnClose(f func())

type Config

type Config struct {
	WebhookCreds   map[string]string
	BaseURL        string
	CSRFKeyBytes   []byte
	HMACKeyBytes   []byte
	Production     bool
	RequestLogging bool
	RpcApi         bool
}

Directories

Path Synopsis
mockservice
Package mockservice is a generated GoMock package.
Package mockservice is a generated GoMock package.

Jump to

Keyboard shortcuts

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