chore: import upstream snapshot with attribution
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package mock
|
||||
|
||||
import (
|
||||
"go-micro.dev/v6/registry"
|
||||
"go-micro.dev/v6/server"
|
||||
)
|
||||
|
||||
type MockHandler struct {
|
||||
Opts server.HandlerOptions
|
||||
Hdlr interface{}
|
||||
Id string
|
||||
}
|
||||
|
||||
func (m *MockHandler) Name() string {
|
||||
return m.Id
|
||||
}
|
||||
|
||||
func (m *MockHandler) Handler() interface{} {
|
||||
return m.Hdlr
|
||||
}
|
||||
|
||||
func (m *MockHandler) Endpoints() []*registry.Endpoint {
|
||||
return []*registry.Endpoint{}
|
||||
}
|
||||
|
||||
func (m *MockHandler) Options() server.HandlerOptions {
|
||||
return m.Opts
|
||||
}
|
||||
Reference in New Issue
Block a user