1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

fix: some linting issues (#2563)

This commit is contained in:
David Brouwer
2022-09-30 16:27:07 +02:00
committed by GitHub
parent 47e6a8d725
commit 85c0b0b8eb
221 changed files with 1025 additions and 1283 deletions

View File

@ -11,25 +11,25 @@ type Watcher interface {
}
// Result is returned by a call to Next on
// the watcher. Actions can be create, update, delete
// the watcher. Actions can be create, update, delete.
type Result struct {
Action string
Service *Service
}
// EventType defines registry event type
// EventType defines registry event type.
type EventType int
const (
// Create is emitted when a new service is registered
// Create is emitted when a new service is registered.
Create EventType = iota
// Delete is emitted when an existing service is deregsitered
// Delete is emitted when an existing service is deregsitered.
Delete
// Update is emitted when an existing servicec is updated
// Update is emitted when an existing servicec is updated.
Update
)
// String returns human readable event type
// String returns human readable event type.
func (t EventType) String() string {
switch t {
case Create:
@ -43,7 +43,7 @@ func (t EventType) String() string {
}
}
// Event is registry event
// Event is registry event.
type Event struct {
// Id is registry id
Id string