...

Source file src/github.com/goph/emperror/handler/rollbarhandler/handler_test.go

Documentation: github.com/goph/emperror/handler/rollbarhandler

     1  package rollbarhandler_test
     2  
     3  import (
     4  	"github.com/rollbar/rollbar-go"
     5  
     6  	"github.com/goph/emperror/handler/rollbarhandler"
     7  )
     8  
     9  func ExampleNew() {
    10  	token := "token"
    11  
    12  	_ = rollbarhandler.New(token, "env", "version", "host", "serverRoot")
    13  
    14  	// Output:
    15  }
    16  
    17  func ExampleNewFromClient() {
    18  	token := "token"
    19  
    20  	_ = rollbarhandler.NewFromClient(rollbar.New(
    21  		token,
    22  		"env",
    23  		"version",
    24  		"host",
    25  		"serverRoot",
    26  	))
    27  
    28  	// Output:
    29  }
    30  

View as plain text