jit_injection

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	// Load person by ID
	Load(ID int) (Person, error)
}

type DataSourceJIT

type DataSourceJIT interface {
	// Load person by ID
	Load(ID int) (Person, error)
}

type Debugger

type Debugger interface {
	Log(msg string, args ...interface{})
}

type LoadPersonHandler

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

func NewLoadPersonHandler

func NewLoadPersonHandler(logic LoadPersonLogic) *LoadPersonHandler

func (*LoadPersonHandler) ServeHTTP

func (h *LoadPersonHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)

type LoadPersonLogic

type LoadPersonLogic interface {
	// Load person by supplied ID
	Load(ID int) (Person, error)
}

type MyDataSourceJIT

type MyDataSourceJIT struct {
}

Default implementation of DataSourceJIT

func NewMyDataSourceJIT

func NewMyDataSourceJIT() *MyDataSourceJIT

func (*MyDataSourceJIT) Load

func (m *MyDataSourceJIT) Load(ID int) (Person, error)

type MyLoadPersonLogic

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

func NewMyLoadPersonLogic

func NewMyLoadPersonLogic(ds DataSource) *MyLoadPersonLogic

func (*MyLoadPersonLogic) Load

func (m *MyLoadPersonLogic) Load(ID int) (Person, error)

Load person by supplied ID

type MyLoadPersonLogicJIT

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

func (*MyLoadPersonLogicJIT) Load

func (m *MyLoadPersonLogicJIT) Load(ID int) (Person, error)

Load person by supplied ID

type ObjectWithDebugger

type ObjectWithDebugger struct {
	Debugger Debugger
}

func (*ObjectWithDebugger) DoSomethingAmazing

func (o *ObjectWithDebugger) DoSomethingAmazing(input int) error

type Person

type Person struct {
	Name string
}

Jump to

Keyboard shortcuts

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