executor

package
v0.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Establish

func Establish() gin.HandlerFunc

Establish sets the executor in the given context

func FromContext

func FromContext(c context.Context) executor.Engine

FromContext returns the Executor associated with this context.

func Retrieve

func Retrieve(c *gin.Context) exec.Engine

Retrieve gets the repo in the given context

func ToContext

func ToContext(c Setter, e executor.Engine)

ToContext adds the Executor to this context if it supports the Setter interface.

Types

type Setter

type Setter interface {
	Set(string, interface{})
}

Setter defines a context that enables setting values.

Jump to

Keyboard shortcuts

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