https://github.com/deloitteoptimalreality/airflow-wrapper-go
A wrapper library that sets up a client interface for airflow-client-go
https://github.com/deloitteoptimalreality/airflow-wrapper-go
Last synced: 11 months ago
JSON representation
A wrapper library that sets up a client interface for airflow-client-go
- Host: GitHub
- URL: https://github.com/deloitteoptimalreality/airflow-wrapper-go
- Owner: DeloitteOptimalReality
- License: apache-2.0
- Archived: true
- Created: 2024-07-04T00:17:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-13T06:10:25.000Z (over 1 year ago)
- Last Synced: 2025-06-07T19:06:24.133Z (about 1 year ago)
- Language: Go
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/DeloitteOptimalReality/airflow-wrapper-go/actions)
# Introduction
This is a wrapper library of the airflow-client-go library. The library is written in Go and allows your to create clients with interface methods to interact with the Apache Airflow REST API.
# Getting Started
To use this library, you need to have Go installed on your machine. You can download and install Go from [here](https://golang.org/dl/).
# Usage
To import the library in your project, you can use the following command:
```go
import "github.com/DeloitteOptimalReality/airflow-wrapper-go/pkg/client"
```
To setup a client, you can use the following code:
```go
c := client.NewAirflowClient("localhost:8080", "http", "airflow", "airflow")
```
To get a DAG, you can use the following code:
```go
dag, err := c.GetDag("dag_id")
```