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