github.com/free5gc/openapi@v1.0.8/Nnrf_NFDiscovery/client.go (about) 1 //go:build !debug 2 // +build !debug 3 4 /* 5 * NRF NFDiscovery Service 6 * 7 * NRF NFDiscovery Service 8 * 9 * API version: 1.0.0 10 * Generated by: OpenAPI Generator (https://openapi-generator.tech) 11 */ 12 13 package Nnrf_NFDiscovery 14 15 // APIClient manages communication with the NRF NFDiscovery Service 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 NFInstancesStoreApi *NFInstancesStoreApiService 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.NFInstancesStoreApi = (*NFInstancesStoreApiService)(&c.common) 38 39 return c 40 }