Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

rb-go/als-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALS-Go Client Library for Go Lang projects

Website | Contributing

GoDoc Build Status Go Report Card Coverage Status

Example

package main

import (
	"github.com/Riftbit/als-go-client"
	"fmt"
	"github.com/Riftbit/ALS-Go/httpmodels"
)

func main() {
	conf := alsgoclient.Config{
		Uri: "http://als.local:8080/",
		Login: "ergoz",
		Password: "ergoz",
		IsAsync: false,
		Timeout: 1000,
	}
	client, err := alsgoclient.New(conf)
	if err != nil {
		panic(err)
	}

	fmt.Println("=============================")

	cats, _ := client.GetCategories()
	for _, dat := range cats.CategoriesList {
		fmt.Println(dat)
	}

	fmt.Println("=============================")

	args := httpmodels.RequestLogGetLog{Category: "capi", Limit: 10}
	result, _ := client.Get(args)
	for _,data := range result.LogList {
		fmt.Println(data.ID, "-", data.Message)
	}

	fmt.Println("=============================")
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages