https://github.com/stardustdl/listat
Listat is a light statistic service.
https://github.com/stardustdl/listat
acblog dotnet golang
Last synced: 21 days ago
JSON representation
Listat is a light statistic service.
- Host: GitHub
- URL: https://github.com/stardustdl/listat
- Owner: StardustDL
- License: apache-2.0
- Created: 2020-07-21T08:00:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T12:56:54.000Z (about 2 years ago)
- Last Synced: 2025-03-17T09:50:03.044Z (about 1 month ago)
- Topics: acblog, dotnet, golang
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# listat
   [](https://www.nuget.org/packages/Listat/)
Listat is a LIght STATistic service.
## API
- **Post** `/` with *Statistic* body: Create statistic, return id
- **Post** `/query` with *StatisticQuery* body: Query statistics, return list of statistics
- **Post** `/count` with *StatisticQuery* body: Query and count statistics, return the number of statistics
- **Get** `/id`: Get statistic by id, return statistic
- **Delete** `/id`: Delete statistic by id, return if done
- **Put** `/id` with *Statistic* body: Update statistic by id, return if done## Models
```go
type Statistic struct {
Id string
CreationTime time.Time
ModificationTime time.Time
Payload string
Uri string
Category string
}type StatisticQuery struct {
Id string
CreationTime time.Time
ModificationTime time.Time
Payload string
Uri string
Category string
Offset int
Limit int
}
```## SDK
For C#.
```sh
dotnet add package Listat
```API:
```csharp
public interface IListatService
{
Task Create(Statistic statistic, CancellationToken cancellationToken = default);Task Count(StatisticQuery query, CancellationToken cancellationToken = default);
Task> Query(StatisticQuery query, CancellationToken cancellationToken = default);
Task Get(string id, CancellationToken cancellationToken = default);
Task Delete(string id, CancellationToken cancellationToken = default);
Task Update(Statistic statistic, CancellationToken cancellationToken = default);
}
```## Status
