summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-pg/pg/v10/internal/context.go
blob: 06d20c152eda91efd46ce6d5c795c73b70db2062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package internal

import (
	"context"
	"time"
)

type UndoneContext struct {
	context.Context
}

func UndoContext(ctx context.Context) UndoneContext {
	return UndoneContext{Context: ctx}
}

func (UndoneContext) Deadline() (deadline time.Time, ok bool) {
	return time.Time{}, false
}

func (UndoneContext) Done() <-chan struct{} {
	return nil
}

func (UndoneContext) Err() error {
	return nil
}