github.com/free5gc/openapi@v1.0.8/Nchf_ConvergedCharging/client.go (about)

     1  /*
     2   * Nchf_ConvergedCharging
     3   *
     4   * ConvergedCharging Service    © 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
     5   *
     6   * API version: 3.0.3
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package Nchf_ConvergedCharging
    11  
    12  // APIClient manages communication with the Nchf_ConvergedCharging API v3.0.3
    13  // In most cases there should be only one, shared, APIClient.
    14  type APIClient struct {
    15  	cfg    *Configuration
    16  	common service // Reuse a single struct instead of allocating one for each service on the heap.
    17  
    18  	// API Services
    19  	DefaultApi         *DefaultApiService
    20  	DefaultCallbackApi *DefaultCallbackApiService
    21  }
    22  
    23  type service struct {
    24  	client *APIClient
    25  }
    26  
    27  // NewAPIClient creates a new API client. Requires a userAgent string describing your application.
    28  // optionally a custom http.Client to allow for advanced features such as caching.
    29  func NewAPIClient(cfg *Configuration) *APIClient {
    30  
    31  	c := &APIClient{}
    32  	c.cfg = cfg
    33  	c.common.client = c
    34  
    35  	// API Services
    36  	c.DefaultApi = (*DefaultApiService)(&c.common)
    37  	c.DefaultCallbackApi = (*DefaultCallbackApiService)(&c.common)
    38  	return c
    39  }