Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Update to new couch_epi API
  • Loading branch information
iilyak committed Sep 28, 2015
1 parent 647ffbc commit fb61c046649addb82ccb9fc9a3c4f56b5663e5f4
Showing 2 changed files with 50 additions and 3 deletions.
@@ -0,0 +1,49 @@
% Licensed under the Apache License, Version 2.0 (the "License"); you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
% License for the specific language governing permissions and limitations under
% the License.


-module(setup_epi).

-behaviour(couch_epi_plugin).

-export([
app/0,
providers/0,
services/0,
data_subscriptions/0,
data_providers/0,
processes/0,
notify/3
]).

app() ->
setup.

providers() ->
[
{chttpd_handlers, setup_httpd_handlers}
].

services() ->
[].

data_subscriptions() ->
[].

data_providers() ->
[].

processes() ->
[].

notify(_Key, _Old, _New) ->
ok.
@@ -35,6 +35,4 @@ start_link() ->
%% ===================================================================

init([]) ->
{ok, { {one_for_one, 5, 10}, [
chttpd_handlers:provider(setup, setup_httpd_handlers)
]} }.
{ok, {{one_for_one, 5, 10}, couch_epi:register_service(setup_epi)}}.

0 comments on commit fb61c04

Please sign in to comment.