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
Click to show internal directories.
Click to hide internal directories.