Documentation ¶
Index ¶
- func CreateLogger(name string) *log.Logger
- func ExtractParamsFromURL(r *http.Request, varName string) string
- func ExtractVarsFromRequest(r *http.Request, varName string) string
- func FormatURL(url string, entries ...string) string
- func GetFromHeader(r *http.Request, header string) string
- func GetTimestamp(logger *log.Logger, timestampFile string) (string, error)
- func HttpExecute(logger *log.Logger, httpClient *http.Client, requestType string, ...) (*http.Response, error)
- func HttpExecuteWithHeader(logger *log.Logger, httpClient *http.Client, requestType string, ...) (*http.Response, error)
- func LoadConfig(logger *log.Logger) (resources.Config, error)
- func PeristsTimestamp(logger *log.Logger, timestamp string, file string) error
- func PrepareDataContractTypesForFeeding(logger *log.Logger, data []ccResources.DataContractType) ([]resources.Data, error)
- func ReadAndUnmarshalFile(logger *log.Logger, file string, object interface{}) error
- func ReadFile(logger *log.Logger, file string) ([]byte, error)
- func Unmarshal(r *http.Request, object interface{}) error
- func UnmarshalDataFromRequest(r *http.Request, object interface{}) ([]byte, error)
- func UnmarshalResponse(ctx context.Context, logger *log.Logger, r *http.Response, object interface{}) error
- func WriteResponse(w http.ResponseWriter, code int, object interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpExecute ¶
func HttpExecuteWithHeader ¶
func PeristsTimestamp ¶
func PrepareDataContractTypesForFeeding ¶
func PrepareDataContractTypesForFeeding(logger *log.Logger, data []ccResources.DataContractType) ([]resources.Data, error)
func ReadAndUnmarshalFile ¶
func UnmarshalResponse ¶
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, code int, object interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.