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: workflow_hook.go
    path of file: ./repos/cds/sdk
    
    the code of the file until where you have to start completion: package sdk

import (
	"database/sql/driver"
	"encoding/base64"
	"encoding/json"
	"fmt"
	"reflect"
	"sort"
	"strings"
)

// Those are icon for hooks
const (
	GitlabIcon    = "Gitlab"
	GitHubIcon    = "Github"
	BitbucketIcon = "Bitbucket"
	GerritIcon    = "git"
)

//NodeHook represents a hook which cann trigger the workflow from a given node
type NodeHook struct {
	ID            int64                  `json:"id" db:"id"`
	UUID          string                 `json:"uuid" db:"uuid"`
	NodeID        int64                  `json:"node_id" db:"node_id"`
	HookModelID   int64                  `json:"hook_model_id" db:"hook_model_id"`
	HookModel
    
func (h NodeHook) ConfigValueContainsEventsDefault() bool {
	eventFilterValue, has := h.GetConfigValue(HookConfigEventFilter)
	if !has {
		return false
	}
	eventFilterValues := strings.Split(eventFilterValue, ";")

	allDefaultsValue := [][]string{
		BitbucketCloudEventsDefault,
		BitbucketEventsDefault,
		GitHubEventsDefault,
		GitlabEventsDefault,
		GerritEventsDefault,
	}

	var atLeastOneFound bool
	for _, defaultValues := range allDefaultsValue {
		var allFound = true
		for _, s := range defaultValues {
			if !IsInArray(s, eventFilterValues) {
				allFound = false
				break
			}
		}
		if allFound {
			atLeastOneFound = true
			break
		}
	}

	return atLeastOneFound
}