This repository holds EXPLO's utility libraries + functions for HIVE. This includes the HiveService
module, which holds functions for sending, receiving, and searching HIVE atoms against a HIVE server, and the HiveAtom
module, which holds convenience functions and a struct definition of a Hive Atom.
The package can be installed by adding hive_service
to your list of dependencies in
mix.exs
:
def deps do
[
{:hive_service, git: "github.com:exploration/hive-service.git"},
]
end
If you're using HiveService
, you'll very likely want to set the following config var in your application:
config :hive_service,
hive_api_token: "your token",
hive_api_url: "https://hive.explo.org"
We also have a "debug mode", which logs HIVE actions to the console instead of actually sending them. This is common to include in dev.exs
:
config :hive_service,
debug_mode: true