Bump reva deps (#8412)

* bump dependencies

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* bump reva and add config options

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2024-02-21 10:20:36 +01:00
committed by GitHub
parent c92ebf4b46
commit 5ed57cc09a
490 changed files with 19128 additions and 11161 deletions
+19 -19
View File
@@ -7,15 +7,15 @@ import (
)
var (
// DefaultRuntime is default micro runtime
// DefaultRuntime is default micro runtime.
DefaultRuntime Runtime = NewRuntime()
// DefaultName is default runtime service name
// DefaultName is default runtime service name.
DefaultName = "go.micro.runtime"
ErrAlreadyExists = errors.New("already exists")
)
// Runtime is a service runtime manager
// Runtime is a service runtime manager.
type Runtime interface {
// Init initializes runtime
Init(...Option) error
@@ -37,7 +37,7 @@ type Runtime interface {
String() string
}
// Stream returns a log stream
// Stream returns a log stream.
type LogStream interface {
Error() error
Chan() chan LogRecord
@@ -45,11 +45,11 @@ type LogStream interface {
}
type LogRecord struct {
Message string
Metadata map[string]string
Message string
}
// Scheduler is a runtime service scheduler
// Scheduler is a runtime service scheduler.
type Scheduler interface {
// Notify publishes schedule events
Notify() (<-chan Event, error)
@@ -57,19 +57,19 @@ type Scheduler interface {
Close() error
}
// EventType defines schedule event
// EventType defines schedule event.
type EventType int
const (
// Create is emitted when a new build has been craeted
// Create is emitted when a new build has been craeted.
Create EventType = iota
// Update is emitted when a new update become available
// Update is emitted when a new update become available.
Update
// Delete is emitted when a build has been deleted
// Delete is emitted when a build has been deleted.
Delete
)
// String returns human readable event type
// String returns human readable event type.
func (t EventType) String() string {
switch t {
case Create:
@@ -83,28 +83,28 @@ func (t EventType) String() string {
}
}
// Event is notification event
// 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
// 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
}