routes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveV2

func ResolveV2(
	logger *zap.Logger,
	syncService *service_sync.Service,
) func(c *gin.Context)

func StartV2

func StartV2(
	logger *zap.Logger,
	syncService *service_sync.Service,
) func(c *gin.Context)

Auth happens elsewhere

func Status

func Status(repo db_view.Repository, executorProvider executor.Provider, logger *zap.Logger) func(c *gin.Context)

Status does not perform any authentication. That's expected to be done by ValidateViewAccessMiddleware or similar.

Types

type InitSyncRequest

type InitSyncRequest struct {
	WorkspaceID string `json:"workspace_id" binding:"required"`
}

type ResolveFileRequest

type ResolveFileRequest struct {
	FilePath string `json:"file_path" binding:"required"`
	Version  string `json:"version" binding:"required"`
}

type ResolveRequest

type ResolveRequest struct {
	Files []ResolveFileRequest `json:"files" binding:"required"`
}

Jump to

Keyboard shortcuts

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