apns_feedback (apns v2.6.0)
Contains helper functions for feedback.
Copyright 2017 Erlang Solutions Ltd.
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.
Summary
Types
Link to this type
feedback/0
-type feedback() :: {calendar:datetime(), string()}.
Link to this type
feedback_config/0
-type feedback_config() :: #{host := string(), port := pos_integer(), certfile := string(), keyfile => string(), timeout := pos_integer()}.
Link to this type
socket/0
-type socket() :: ssl:sslsocket().
Functions
Link to this function
get_feedback(Config)
-spec get_feedback(feedback_config()) -> [feedback()] | {error, term()} | timeout.