services

package
v0.12.0-df06780 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package service contains methods used by internal components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceResponse

type ServiceResponse struct {
	Status int
	Data   interface{}
}

ServiceResponse is a struct for all the responses made by the services

func ContinueResponse

func ContinueResponse(data interface{}) ServiceResponse

ContinueResponse helper method to build a continue type ServiceResponse

func ErrorResponse

func ErrorResponse(err errors.FabricError) ServiceResponse

ErrorResponse helper method to build an error type ServiceResponse

func SuccessResponse

func SuccessResponse(data interface{}) ServiceResponse

SuccessResponse helper method to build a success type ServiceResponse

func (ServiceResponse) WriteTo

func (s ServiceResponse) WriteTo(ctx *gin.Context)

WriteTo implements the gin interface to write a ServiceResponse into an gin request/response

Directories

Path Synopsis
Package k8s is an util library to deal with kubernetes.
Package k8s is an util library to deal with kubernetes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL