Documentation ¶
Index ¶
- func ToViaJSON[T any](source any) (target T, err error)
- func Upsert(columns ...string) clause.OnConflict
- func WithRequestInputFunc(ctx context.Context, fn RequestInputFunc) context.Context
- func WithTimeout(ctx context.Context, timeout time.Duration, fn func(ctx context.Context))
- type BatchIterator
- type Logger
- type Pipeline
- type Registry
- type RequestInputFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Upsert ¶
func Upsert(columns ...string) clause.OnConflict
func WithRequestInputFunc ¶
func WithRequestInputFunc(ctx context.Context, fn RequestInputFunc) context.Context
Types ¶
type BatchIterator ¶
type RequestInputFunc ¶
var RequestInputStdin RequestInputFunc = func(ctx context.Context, text string) (string, error) { reader := bufio.NewReader(os.Stdin) fmt.Printf("%s: ", text) text, err := reader.ReadString('\n') if err != nil { return "", errors.Wrap(err, "read line from stdin") } return strings.Trim(text, " \n\t\v"), nil }
func GetRequestInputFunc ¶
func GetRequestInputFunc(ctx context.Context) RequestInputFunc
Source Files ¶
Click to show internal directories.
Click to hide internal directories.