You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: postgres_notification.go
    path of file: ./repos/steampipe/pkg/steampipeconfig
    
    the code of the file until where you have to start completion: package steampipeconfig

import (
	"github.com/turbot/steampipe/pkg/error_helpers"
)

const PostgresNotificationStructVersion = 20230306

type PostgresNotificationType int

const (
	PgNotificationSchemaUpdate PostgresNotificationType = iota + 1
	PgNotification
    
func NewErrorsAndWarningsNotification(errorAndWarnings *error_helpers.ErrorAndWarnings) *ErrorsAndWarningsNotification {
	res := &ErrorsAndWarningsNotification{
		PostgresNotification: PostgresNotification{
			StructVersion: PostgresNotificationStructVersion,
			Type:          PgNotificationConnectionError,
		},
	}

	if errorAndWarnings.Error != nil {
		res.Errors = []string{errorAndWarnings.Error.Error()}
	}
	res.Warnings = append(res.Warnings, errorAndWarnings.Warnings...)
	return res
}