...

Source file src/go.formulabun.club/translator/server/go/api.go

Documentation: go.formulabun.club/translator/server/go

     1  /*
     2   * Translator service between a srb2kart server and json
     3   *
     4   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     5   *
     6   * API version: 0.0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package openapi
    11  
    12  import (
    13  	"context"
    14  	"net/http"
    15  )
    16  
    17  
    18  
    19  // DefaultApiRouter defines the required methods for binding the api requests to a responses for the DefaultApi
    20  // The DefaultApiRouter implementation should parse necessary information from the http request,
    21  // pass the data to a DefaultApiServicer to perform the required actions, then write the service results to the http response.
    22  type DefaultApiRouter interface { 
    23  	FilesGet(http.ResponseWriter, *http.Request)
    24  	PlayerinfoGet(http.ResponseWriter, *http.Request)
    25  	ServerinfoGet(http.ResponseWriter, *http.Request)
    26  }
    27  
    28  
    29  // DefaultApiServicer defines the api actions for the DefaultApi service
    30  // This interface intended to stay up to date with the openapi yaml used to generate it,
    31  // while the service implementation can be ignored with the .openapi-generator-ignore file
    32  // and updated with the logic required for the API.
    33  type DefaultApiServicer interface { 
    34  	FilesGet(context.Context) (ImplResponse, error)
    35  	PlayerinfoGet(context.Context) (ImplResponse, error)
    36  	ServerinfoGet(context.Context) (ImplResponse, error)
    37  }
    38  

View as plain text