Giter Site home page Giter Site logo

verso-go's Introduction

๐Ÿ“š verso

This project was a Google Reader API clone based on unofficial documentation. It is no longer updated.

The API is about 80% functional and usable in third-party apps like NetNewsWire or Reeder.

Dependencies

brew install golang goose go-task postgresql redis sqlc

go install github.com/bokwoon95/wgo@latest

Usage

task
task --list-all

Migrations

task db:create
task db:migrate
task db:reset
task db:gen -- migration_name

verso-go's People

Contributors

dependabot[bot] avatar paulfri avatar

Watchers

 avatar  avatar

verso-go's Issues

Setup Airbrake for your Go application

Installing with the CLI

The Airbrake CLI installs the Airbrake Go notifier automatically in your Go project. To install the notifier directly without using the CLI, please scroll down to the Installing manually section.

Install the CLI via Homebrew

brew install airbrake/airbrake-cli/airbrake

Authenticate via config command

Authenticate by setting your user-key with the config command:

airbrake config set user-key YOUR_USER_KEY_HERE

Install command

Invoke the following to have the Airbrake CLI install the Airbrake notifier for your project:

airbrake install --project-id 495447

After this, you are set! Check out the Testing your installation section to send a test error to Airbrake.

Installing manually

Install in existing project

Navigate to your project's main directory and install our Go package, gobrake:

go get github.com/airbrake/gobrake/v5

Install in new app

Create a new directory, initialize a new module and go get the library:

mkdir airbrake_example && cd airbrake_example
go mod init airbrake_example
go get github.com/airbrake/gobrake/v5

Configuration

Import and initialize the gobrake package in your application:

package main

import "github.com/airbrake/gobrake/v5"

var airbrake = gobrake.NewNotifierWithOptions(&gobrake.NotifierOptions{
	ProjectId: 495447,
	ProjectKey: "14108084f70144073cf58cc62ab733b8",
	Environment: "production",
})

func main() {
	defer airbrake.Close()
	defer airbrake.NotifyOnPanic()
}

That's it! The airbrake.NotifyOnPanic() call will handle automatic panic reporting.

Testing your installation

You can use airbrake.Notify() to send handled errors. Let's use it now to check if gobrake is installed correctly:

import "errors"

func testAirbrake() {
	airbrake.Notify(errors.New("Error Test from Airbrake"), nil)
}

You should see this dashboard updating with your test error soon after you run that function.

Full documentation

Check out our official documentation for info on advanced features like ignoring errors, setting error severity and more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.