events

package
v0.0.0-...-5643740 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVEventsResponse

func CSVEventsResponse(filename string, events *models.EventList) middleware.Responder

CSVEventsResponse creates a new response handler for CSV files

func Configure

func Configure(api *operations.EasyclaAPI, service v1Events.Service, v1CompanyRepo v1Company.IRepository, projectsClaGroupsRepo projects_cla_groups.Repository, projectService v1ProjectService.Service)

Configure setups handlers on api with service

func WriteResponse

func WriteResponse(httpStatus int, contentType string, contentProducer runtime.Producer, data interface{}) middleware.Responder

WriteResponse function writes http response.

Types

type CSVEventsResponderFunc

type CSVEventsResponderFunc struct {
	Filename string
	Events   *models.EventList
}

CSVEventsResponderFunc wraps a func as a Responder interface

func (CSVEventsResponderFunc) WriteResponse

func (fn CSVEventsResponderFunc) WriteResponse(rw http.ResponseWriter, pr runtime.Producer)

WriteResponse writes to the response

Jump to

Keyboard shortcuts

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