rest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupInput

type GroupInput struct {
	storage.EventReceiverGroup
	EventReceiverIDs []graphql.ID `json:"event_receiver_ids"`
}

GroupInput rest representation of the data for a storage.EventReceiverGroup

type Response

type Response struct {
	Data   any      `json:"data,omitempty"`
	Errors []string `json:"errors,omitempty"`
}

Response generic rest response for all object types.

type Server

type Server struct {
	DBConnector *storage.Database
	// contains filtered or unexported fields
}

func New

func New(conn *storage.Database, msgProducer message.TopicProducer) *Server

func (*Server) CreateEvent

func (s *Server) CreateEvent() http.HandlerFunc

func (*Server) CreateGroup

func (s *Server) CreateGroup() http.HandlerFunc

func (*Server) CreateReceiver

func (s *Server) CreateReceiver() http.HandlerFunc

func (*Server) GetEventByID

func (s *Server) GetEventByID() http.HandlerFunc

func (*Server) GetGroupByID

func (s *Server) GetGroupByID() http.HandlerFunc

func (*Server) GetReceiverByID

func (s *Server) GetReceiverByID() http.HandlerFunc

func (*Server) ServeOpenAPIDoc

func (s *Server) ServeOpenAPIDoc(_ string) http.HandlerFunc

func (*Server) UpdateGroup

func (s *Server) UpdateGroup() http.HandlerFunc

Jump to

Keyboard shortcuts

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