Skip to content

essentialkaos/go-icecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

207 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GoReportCard GitHub Actions CI Status GitHub Actions CodeQL Status Coverage Status

Usage exampleCI StatusLicense


go-icecast is a Go package for working with Icecast Admin API.

Usage example

package main

import (
  "fmt"

  ic "github.com/essentialkaos/go-icecast/v3"
)

func main() {
  api, err := ic.NewAPI("https://127.0.0.1:8000", "admin", "MySuppaPAssWOrd")
  api.SetUserAgent("MyApp", "1.2.3")

  if err != nil {
    fmt.Printf("Error: %v\n", err)
    return
  }

  stats, err := api.GetStats()

  if err != nil {
    fmt.Printf("Error: %v\n", err)
    return
  }

  fmt.Println("%-v\n", stats)
}

CI Status

Branch Status
master (Stable) CI
develop (Unstable) CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0

About

Go package for working with Icecast API

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •