Peter Kurfer
108444e094
- remove plugin API due to incompatibility issues - add Docker build to GitHub Actions - add custom container friendly config file
16 lines
331 B
Go
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
|
|
}
|