Peter Kurfer
af31b1166a
- watch events interactively - pipe events to files - remove file subscriptions
18 lines
363 B
Go
18 lines
363 B
Go
package rpc
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitlab.com/inetmock/inetmock/pkg/api"
|
|
)
|
|
|
|
type handlersServer struct {
|
|
UnimplementedHandlersServer
|
|
registry api.HandlerRegistry
|
|
}
|
|
|
|
func (h *handlersServer) GetHandlers(_ context.Context, _ *GetHandlersRequest) (*GetHandlersResponse, error) {
|
|
return &GetHandlersResponse{
|
|
Handlers: h.registry.AvailableHandlers(),
|
|
}, nil
|
|
}
|