server

package
v0.0.0-...-ce2ccc6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func GitHubApp

func GitHubApp(ghRepo biz.GitHubRepo) http.FilterFunc

Filter specific requests to make use of gothic auth handler

func GitHubAuthenticator

func GitHubAuthenticator(config *conf.Config, ghRepo biz.GitHubRepo) middleware.Middleware

Authenticate user with either GitHub Token / Session

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) middleware.Middleware

Helps to log errors

func NewGRPCServer

func NewGRPCServer(c *conf.Server, todo *service.TodoService, logger log.Logger) *grpc.Server

NewGRPCServer new a gRPC server. (Currently not in use)

func NewHTTPServer

func NewHTTPServer(c *conf.Server, config *conf.Config, conf *conf.GitHubApp, ghRepo biz.GitHubRepo, todo *service.TodoService, gh *service.GitHubService, logger log.Logger) *http.Server

NewHTTPServer new an HTTP server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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