MCPcopy
hub / github.com/benbjohnson/wtf / DialService

Struct DialService

mock/dial.go:13–21  ·  view source on GitHub ↗

DialService represents a mock of wtf.DialService.

Source from the content-addressed store, hash-verified

11
12// DialService represents a mock of wtf.DialService.
13type DialService struct {
14 FindDialByIDFn func(ctx context.Context, id int) (*wtf.Dial, error)
15 FindDialsFn func(ctx context.Context, filter wtf.DialFilter) ([]*wtf.Dial, int, error)
16 CreateDialFn func(ctx context.Context, dial *wtf.Dial) error
17 UpdateDialFn func(ctx context.Context, id int, upd wtf.DialUpdate) (*wtf.Dial, error)
18 DeleteDialFn func(ctx context.Context, id int) error
19 SetDialMembershipValueFn func(ctx context.Context, dialID, value int) error
20 AverageDialValueReportFn func(ctx context.Context, start, end time.Time, interval time.Duration) (*wtf.DialValueReport, error)
21}
22
23func (s *DialService) FindDialByID(ctx context.Context, id int) (*wtf.Dial, error) {
24 return s.FindDialByIDFn(ctx, id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected