Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add type specs for reqdata, context and reply.

  • Loading branch information...
commit e7e9f46b800f92fadb2eb3247a9b60cce40d4419 1 parent ab61dea
Andreas Stenius kaos authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/webzmachine.erl
4 src/webzmachine.erl
View
@@ -18,10 +18,14 @@
-author('Justin Sheehy <justin@basho.com>').
-author('Andy Gross <andy@basho.com>').
-export([start/0, stop/0]).
+-export_type([reqdata/0, context/0, reply/0]).
-include("webmachine_logger.hrl").
-include_lib("include/wm_reqdata.hrl").
+-opaque reqdata() :: #wm_reqdata{}.
+-opaque context() :: term().
+-type reply() :: {Result::term(), reqdata(), context()}.
%% @spec start() -> ok
%% @doc Start the webmachine server.
Please sign in to comment.
Something went wrong with that request. Please try again.