-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.go
More file actions
23 lines (23 loc) · 963 Bytes
/
Copy pathdoc.go
File metadata and controls
23 lines (23 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Package flashduty is the official Go client for the Flashduty Open API
// (https://flashcat.cloud). It is a thin, typed wrapper: every method maps to
// exactly one HTTP call, returns (*T, *Response, error), and performs no hidden
// cross-endpoint enrichment.
//
// Create a client with an app key:
//
// client, err := flashduty.NewClient("APP_KEY")
// if err != nil {
// // handle error
// }
//
// Endpoints are grouped into services on the client, e.g.
// client.Incidents.List(ctx, &flashduty.IncidentListRequest{...}). Most are POST
// actions; a few read endpoints are GET with query parameters. Services are
// added by the code generator; see internal/cmd/gen.
//
// Cross-cutting transport concerns (retry, caching, tracing, rate-limit
// handling) compose as http.RoundTripper middleware via WithTransport. The
// optional retry subpackage provides a safe-by-default retrying transport.
//
//go:generate go run ./internal/cmd/gen
package flashduty