1
0
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:
Lukasz Raczylo
2023-04-26 00:16:34 +00:00
committed by GitHub
parent 0f9b2f00c9
commit a7522e7d6c
113 changed files with 694 additions and 637 deletions

View File

@@ -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
}