File: module.go

package info (click to toggle)
gitlab-agent 16.11.5-1
  • links: PTS, VCS
  • area: contrib
  • in suites: experimental
  • size: 7,072 kB
  • sloc: makefile: 193; sh: 55; ruby: 3
file content (22 lines) | stat: -rw-r--r-- 402 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package server

import (
	"context"

	"gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/notifications"
)

type SubscribeToEvents func(ctx context.Context)

type module struct {
	subscribeToEvents SubscribeToEvents
}

func (m *module) Run(ctx context.Context) error {
	m.subscribeToEvents(ctx)
	return nil
}

func (m *module) Name() string {
	return notifications.ModuleName
}