Skip to content

kervandev/kervan-scout-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kervan-scout-go

client := kervanscout.New(kervanscout.Config{
  Host:         "...",
  ProjectToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.....",
})

type Data struct {
  Agent string `json:"agent"`
  Json  string `json:"json"`
}

data := Data{
  Agent: c.GetHeader("User-Agent"),
  Json:  "{\"test\": \"test\"},{05327776655,5555 1111 1111 1233,[email protected]}",
}

defer client.CatchPanicError()

client.SendIssue("foo", "bar", kervanscout.Options{
    Payload:data,
})