pkg/storage/postgres/postgres.go
Method storage.Push
has 6 return statements (exceeds 4 allowed). Open
Open
func (c storage) Push(ctx context.Context, value []byte) error {
// ! Deprecation notice: End of life in v1.0.0
if !c.config.UseFormattingToPerformQuery {
request := fmt.Sprintf("INSERT INTO %s(%s) VALUES ($1)", c.config.TableName, c.config.DataField)
if _, err := c.client.Query(request, value); err != nil {
Function NewStorage
has 5 return statements (exceeds 4 allowed). Open
Open
func NewStorage(configRaw map[string]interface{}) (*storage, error) {
var err error
newClient := storage{
config: &config{},
a blank import should be only in a main or test package, or have a comment justifying it Open
Open
_ "github.com/lib/pq"
- Exclude checks
exported func NewStorage returns unexported type *postgres.storage, which can be annoying to use Open
Open
func NewStorage(configRaw map[string]interface{}) (*storage, error) {
- Exclude checks