https://github.com/mrdotb/gax
Fork of gax to add a logging middleware to tesla
https://github.com/mrdotb/gax
Last synced: 3 months ago
JSON representation
Fork of gax to add a logging middleware to tesla
- Host: GitHub
- URL: https://github.com/mrdotb/gax
- Owner: mrdotb
- License: apache-2.0
- Created: 2023-06-10T17:20:10.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-10T17:20:18.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T01:58:04.550Z (3 months ago)
- Language: Elixir
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoogleApi.Gax
Google API Extensions for Elixir
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `google_gax` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:google_gax, "~> 0.3.2"}
]
end
```## Usage
This package is used to share common code between all of the Google Elixir
client libraries.### GoogleApi.Gax.Connection
This module is used to set up client connection options:
```elixir
defmodule MyConnection do
use GoogleApi.Gax.Connection, scopes: ["https://example.com/read"], base_url: "https://api.example.com"
end
```### GoogleApi.Gax.ModelBase
This module is used to provide macros for helping to define your model structs:
```elixir
defmodule Pet do
use GoogleApi.Gax.ModelBasefield(:id)
field(:category, as: Category)
field(:tags, as: Tag, type: :list)
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/google_gax](https://hexdocs.pm/google_gax).