api/internal/rpc/handlers_server.go
Peter Kurfer af31b1166a
Audit API prototype
- watch events interactively
- pipe events to files
- remove file subscriptions
2021-01-26 18:19:03 +01:00

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
}