pushito v0.1.0 Pushito.Config View Source

This module represents the connection configuration

Link to this section Summary

Functions

Adds the cert_file to the notification

Adds the apple host to the notification

Adds the key_file to the notification

Addss the name to the notification

Adds the team_id to the notification

Adds the token_key_file to the notification

Adds the token_key_id to the notification

Adds the device_id to the notification

Returns an empty config

Link to this section Types

Link to this type t() View Source
t() :: %Pushito.Config{apple_host: String.t | nil, cert_file: String.t | nil, key_file: String.t | nil, name: Pushito.connection_name | nil, team_id: String.t | nil, token_key_file: String.t | nil, token_key_id: String.t | nil, type: type}
Link to this type type() View Source
type() :: :cert | :token

Link to this section Functions

Link to this function add_cert_file(config, cert_file) View Source
add_cert_file(t, String.t) :: t

Adds the cert_file to the notification

Link to this function add_host(config, host) View Source
add_host(t, String.t) :: t

Adds the apple host to the notification

Link to this function add_key_file(config, key_file) View Source
add_key_file(t, String.t) :: t

Adds the key_file to the notification

Addss the name to the notification

Link to this function add_team_id(config, team_id) View Source
add_team_id(t, String.t) :: t

Adds the team_id to the notification

Link to this function add_token_key_file(config, token_key_file) View Source
add_token_key_file(t, String.t) :: t

Adds the token_key_file to the notification

Link to this function add_token_key_id(config, token_key_id) View Source
add_token_key_id(t, String.t) :: t

Adds the token_key_id to the notification

Link to this function add_type(config, type) View Source
add_type(t, type) :: t

Adds the device_id to the notification

Returns an empty config