gokit

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoKitModel

func NewGoKitModel(interfacePath, interfaceName, structName, targetPkg string) *goKitModel

Types

type CounterAddAction

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

func (*CounterAddAction) Build

func (c *CounterAddAction) Build() ast.Stmt

type IncreaseFailedOps

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

func NewIncreaseFailedOps

func NewIncreaseFailedOps(m *astgen.MethodConfig, counterField *ast.SelectorExpr) *IncreaseFailedOps

func (*IncreaseFailedOps) Build

func (i *IncreaseFailedOps) Build() ast.Stmt

type RecordOpDuration

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

func NewRecordOpDuraton

func NewRecordOpDuraton(timePackageAlias string, opsDuration *ast.SelectorExpr, operationName string) *RecordOpDuration

func (RecordOpDuration) Build

func (r RecordOpDuration) Build() ast.Stmt

Jump to

Keyboard shortcuts

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