mirror of
https://github.com/go-micro/go-micro.git
synced 2025-12-17 21:57:26 +02:00
fix: struct field alignment (#2632)
This commit is contained in:
@@ -45,8 +45,8 @@ type LogStream interface {
|
||||
}
|
||||
|
||||
type LogRecord struct {
|
||||
Message string
|
||||
Metadata map[string]string
|
||||
Message string
|
||||
}
|
||||
|
||||
// Scheduler is a runtime service scheduler.
|
||||
@@ -85,26 +85,26 @@ func (t EventType) String() string {
|
||||
|
||||
// Event is notification event.
|
||||
type Event struct {
|
||||
// ID of the event
|
||||
ID string
|
||||
// Type is event type
|
||||
Type EventType
|
||||
// Timestamp is event timestamp
|
||||
Timestamp time.Time
|
||||
// Service the event relates to
|
||||
Service *Service
|
||||
// Options to use when processing the event
|
||||
Options *CreateOptions
|
||||
// ID of the event
|
||||
ID string
|
||||
// Type is event type
|
||||
Type EventType
|
||||
}
|
||||
|
||||
// Service is runtime service.
|
||||
type Service struct {
|
||||
// Metadata stores metadata
|
||||
Metadata map[string]string
|
||||
// Name of the service
|
||||
Name string
|
||||
// Version of the service
|
||||
Version string
|
||||
// url location of source
|
||||
Source string
|
||||
// Metadata stores metadata
|
||||
Metadata map[string]string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user