github.com/free5gc/openapi@v1.0.8/Nausf_SoRProtection/client.go (about) 1 //go:build !debug 2 // +build !debug 3 4 /* 5 * Nausf_SoRProtection Service 6 * 7 * AUSF SoR Protection Service 8 * 9 * API version: 1.0.1 10 * Generated by: OpenAPI Generator (https://openapi-generator.tech) 11 */ 12 13 package Nausf_SoRProtection 14 15 // APIClient manages communication with the Nausf_SoRProtection Service API v1.0.1 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 DefaultApi *DefaultApiService 23 } 24 25 type service struct { 26 client *APIClient 27 } 28 29 // NewAPIClient creates a new API client. Requires a userAgent string describing your application. 30 // optionally a custom http.Client to allow for advanced features such as caching. 31 func NewAPIClient(cfg *Configuration) *APIClient { 32 c := &APIClient{} 33 c.cfg = cfg 34 c.common.client = c 35 36 // API Services 37 c.DefaultApi = (*DefaultApiService)(&c.common) 38 39 return c 40 }