api

package
v0.0.0-...-ca0f7d1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API struct for API instance

func New

func New(
	logger log.Interface,
	userManager user.Manager,
	healthRouter chi.Router,
	config Config,
) API

NewRouter create API

func (API) CreateRouter

func (a API) CreateRouter() http.Handler

CreateRouter init router for App

type Config

type Config struct {
	AllowedOrigins                  string
	AccessTokenSecretKey            string
	RefreshTokenSecretKey           string
	SessionCookiesDomain            string
	GoogleAuthClientID              string
	GoogleAuthClientSecret          string
	GoogleAuthCallbackRedirectURL   string
	FacebookAuthClientID            string
	FacebookAuthClientSecret        string
	FacebookAuthCallbackRedirectURL string
	NeedToCheckClient               bool
	FrontendAppURL                  string
}

Directories

Path Synopsis
routers

Jump to

Keyboard shortcuts

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