View Source Ravix.Connection.ServerNode (ravix v0.6.3)

State of a RavenDB connection executor node

- store: Atom of the RavenDB Store, E.g: Ravix.Test.Store
- url: URL of this node
- port: port of this node
- conn: TCP Connection State
- protocol: http or https
- database: For which database is this executor
- cluster_tag: Tag of this node in the RavenDB cluster
- adapter: Tesla Adapter
- settings: General node settings

Link to this section Summary

Functions

Helper method to build the url for Database specific API requests

Link to this section Types

@type t() :: %Ravix.Connection.ServerNode{
  adapter: Tesla.Adapter,
  client: term(),
  cluster_tag: String.t() | nil,
  database: String.t(),
  port: non_neg_integer(),
  protocol: atom(),
  settings: Ravix.Connection.ServerNode.Settings.t(),
  store: atom(),
  url: String.t()
}

Link to this section Functions

Link to this function

from_api_response(node_response, conn_state)

View Source
@spec node_url(t()) :: String.t()

Helper method to build the url for Database specific API requests