viewgen

package
v0.0.0-...-62343dc Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViewJobWorker

func ViewJobWorker(jobChannel chan ViewJob, cancelChannel chan bool, jobWaitGroup, workerWaitGroup *sync.WaitGroup)

Types

type ModelView

type ModelView struct {
	Filename string
	View     string
	Name     string
}

func GetModelViews

func GetModelViews(cloud, service, resource string, model interface{}) ([]ModelView, error)

type ViewJob

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

func NewViewJob

func NewViewJob(ctx context.Context, name, view, catalog, database, workgroup string, athenaClient *athena.Client, errorChan chan<- error) ViewJob

type ViewJobProcessor

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

func NewViewJobProcessor

func NewViewJobProcessor(numWorkers, jobBufferLength int) *ViewJobProcessor

func (*ViewJobProcessor) AddJob

func (a *ViewJobProcessor) AddJob(job ViewJob)

func (*ViewJobProcessor) Cancel

func (a *ViewJobProcessor) Cancel()

func (*ViewJobProcessor) Start

func (a *ViewJobProcessor) Start()

func (*ViewJobProcessor) WaitForCompletion

func (a *ViewJobProcessor) WaitForCompletion()

Jump to

Keyboard shortcuts

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