You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
307 B
Go
18 lines
307 B
Go
package pipeline
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Uploader interface {
|
|
UploadCard(context.Context, []byte, *State, string) error
|
|
}
|
|
|
|
func NopUploader() Uploader {
|
|
return new(nopUploader)
|
|
}
|
|
|
|
type nopUploader struct{}
|
|
|
|
func (*nopUploader) UploadCard(context.Context, []byte, *State, string) error { return nil }
|