resource

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDatabaseTimeout = time.Second * 10

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourcesApp

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

func NewResourcesApp

func NewResourcesApp() *ResourcesApp

func (*ResourcesApp) InitNativeRenderingControllers added in v0.0.4

func (app *ResourcesApp) InitNativeRenderingControllers(
	loggerService domainlogger.Logger,
	responseService response.Responder,
) []controller.Controller

func (*ResourcesApp) InitRestApiControllers added in v0.0.4

func (app *ResourcesApp) InitRestApiControllers(
	cacheService cacher.Cacher,
	loggerService domainlogger.Logger,
	responseService response.Responder,

	resourceBuilder builder.Resource,
	resourceService domainresource.CRUD,

	videoBuilder builder.Video,
	videoService domainvideo.CRUD,

	userBuilder builder.User,
	userService domainuser.CRUD,

	authBuilder builder.Auth,
	authService domainauth.Authenticator,
) []controller.Controller

func (*ResourcesApp) InitStaticServingControllers added in v0.0.4

func (app *ResourcesApp) InitStaticServingControllers(
	loggerService domainlogger.Logger,
	responseService response.Responder,
) []controller.Controller

func (*ResourcesApp) Run

func (app *ResourcesApp) Run(mWg *sync.WaitGroup)

Run is method which running the REST API part of app

Jump to

Keyboard shortcuts

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