app

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package app configures and runs application.

Index

Constants

This section is empty.

Variables

View Source
var Version = "DEVELOPMENT"

Functions

func Init

func Init() error

func MigrationError

func MigrationError(op string) error

func Run

func Run(cfg *config.Config)

Run creates objects via constructors.

Types

type DB

type DB interface {
	Close() error
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}

DB is an interface for database operations.

type HTTPServer

type HTTPServer interface {
	Notify() <-chan error
	Shutdown() error
	Start() error
}

HTTPServer is an interface for the HTTP server.

type WebSocketUpgrader

type WebSocketUpgrader interface {
	Upgrade(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (*websocket.Conn, error)
}

WebSocketUpgrader is an interface for WebSocket upgrading.

Jump to

Keyboard shortcuts

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