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:
@ -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
|
||||
|
Reference in New Issue
Block a user