api/internal/rpc/handlers_server.go
Peter Kurfer 108444e094 Add health API and basic CLI support
- remove plugin API due to incompatibility issues
- add Docker build to GitHub Actions
- add custom container friendly config file
2020-06-15 12:32:18 +02:00

16 lines
331 B
Go

package rpc
import (
"context"
"github.com/baez90/inetmock/pkg/api"
)
type handlersServer struct {
registry api.HandlerRegistry
}
func (h *handlersServer) GetHandlers(_ context.Context, _ *GetHandlersRequest) (*GetHandlersResponse, error) {
return &GetHandlersResponse{
Handlers: h.registry.AvailableHandlers(),
}, nil
}