forked from free5gc/openapi
/
client.go
42 lines (34 loc) · 1.2 KB
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//go:build !debug
// +build !debug
/*
* Namf_EventExposure
*
* AMF Event Exposure Service
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package Namf_EventExposure
// APIClient manages communication with the Namf_EventExposure API v1.0.0
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
common service // Reuse a single struct instead of allocating one for each service on the heap.
// API Services
IndividualSubscriptionDocumentApi *IndividualSubscriptionDocumentApiService
SubscriptionsCollectionDocumentApi *SubscriptionsCollectionDocumentApiService
}
type service struct {
client *APIClient
}
// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
// optionally a custom http.Client to allow for advanced features such as caching.
func NewAPIClient(cfg *Configuration) *APIClient {
c := &APIClient{}
c.cfg = cfg
c.common.client = c
// API Services
c.IndividualSubscriptionDocumentApi = (*IndividualSubscriptionDocumentApiService)(&c.common)
c.SubscriptionsCollectionDocumentApi = (*SubscriptionsCollectionDocumentApiService)(&c.common)
return c
}