PhoenixGenApi.ConfigPuller (PhoenixGenApi v0.0.3)

View Source

This is automation module for pull config from nodes and update to local db.

Summary

Functions

Add nodes to pull config from. Nodes is a list of %ServiceConfig{}.

Returns a specification to start this module under a supervisor.

Delete services from pull config from. Nodes is a list of %ServiceConfig{}.

Get api list from node.

Get nodes that will be pulled config from.

Force pull config from nodes.

Functions

add(services)

Add nodes to pull config from. Nodes is a list of %ServiceConfig{}.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

delete(services)

Delete services from pull config from. Nodes is a list of %ServiceConfig{}.

get_api_list(service)

Get api list from node.

get_services()

Get nodes that will be pulled config from.

pull()

Force pull config from nodes.

start_link(opts \\ [])