resource_handler

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceHandler

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

func New

func New(workers int, fetchFn func(object *WorkRequest) interface{}) (*ResourceHandler, error)

func (*ResourceHandler) Close

func (h *ResourceHandler) Close()

func (*ResourceHandler) GetResource

func (h *ResourceHandler) GetResource(id string, metadata interface{}) chan interface{}

type WorkRequest

type WorkRequest struct {
	Id       string
	Metadata interface{}
}

Jump to

Keyboard shortcuts

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