webcontrollers

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthUserData = "rokmonster.dev/auth/userdata"
)

Variables

This section is empty.

Functions

func NewOAuth2Controller added in v0.8.13

func NewOAuth2Controller(engine *gin.Engine, clientId, secret, domains string) *oAuth2Controller

Types

type JobsController

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

func NewJobsController

func NewJobsController(db *bolt.DB, tessdata string) *JobsController

func (*JobsController) Setup

func (controller *JobsController) Setup(router *gin.RouterGroup)

type OAuthClientInfo added in v0.8.13

type OAuthClientInfo struct {
	ID      string `json:"sub"`
	Name    string `json:"name"`
	Email   string `json:"email"`
	Picture string `json:"picture"`
}

type OAuthCredentions added in v0.8.13

type OAuthCredentions struct {
	ClientID string `json:"id"`
	Secret   string `json:"secret"`
}

type OCRJob

type OCRJob struct {
	ID       uint64                `json:"id"`
	Name     string                `json:"name"`
	Results  []ocrschema.OCRResult `json:"results,omitempty"`
	Status   string                `json:"status,omitempty"`
	Template ocrschema.OCRTemplate `json:"template,omitempty"`
}

func (*OCRJob) MediaDirectory

func (job *OCRJob) MediaDirectory() string

type RemoteDevicesController

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

func NewRemoteDevicesController

func NewRemoteDevicesController(templates, tessdata string) *RemoteDevicesController

func (*RemoteDevicesController) Setup

func (controller *RemoteDevicesController) Setup(router *gin.RouterGroup, public *gin.RouterGroup)

type ServerClient added in v0.8.0

type ServerClient struct {
	Name    string
	Address string
	Handler *wsserver.RemoteServerWS
}

ServerClient - holds basic information about rok-remote instance connected to websocket

type TemplateMakerSession

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

type TemplatesController

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

func NewTemplatesController

func NewTemplatesController(templateDir, tessdataDir string) *TemplatesController

func (*TemplatesController) Setup

func (controller *TemplatesController) Setup(router *gin.RouterGroup)

Jump to

Keyboard shortcuts

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