tntcontrollers

package
v0.0.0-...-cc13779 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, mux *http.ServeMux, store *goredisstore.GoRedisStore, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, uptraceOpt *config.UptraceOptions, configFilePath string) error

Init the tnt controllers

func InitTest

func InitTest(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, mux *http.ServeMux, store *goredisstore.GoRedisStore, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, uptraceOpt *config.UptraceOptions, configFilePath string) error

InitTest the tnt controllers

Types

type EventController

type EventController struct {
	UserServiceClient  partyproto.UserServiceClient
	EventServiceClient tntproto.EventServiceClient
	// contains filtered or unexported fields
}

EventController - Create Event Controller

func NewEventController

func NewEventController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, eventServiceClient tntproto.EventServiceClient) *EventController

NewEventController - Create Event Handler

func (*EventController) GetEvent

func (*EventController) GetEvents

GetEvents - list Event Headers

func (*EventController) ServeHTTP

func (ec *EventController) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - parse url and call controller action

type EventSubscriptionController

type EventSubscriptionController struct {
	UserServiceClient              partyproto.UserServiceClient
	EventSubscriptionServiceClient tntproto.EventSubscriptionServiceClient
	// contains filtered or unexported fields
}

EventSubscriptionController - Create EventSubscription Controller

func NewEventSubscriptionController

func NewEventSubscriptionController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, eventSubscriptionServiceClient tntproto.EventSubscriptionServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *EventSubscriptionController

NewEventSubscriptionController - Create EventSubscription Handler

func (*EventSubscriptionController) CreateEventSubscription

func (esc *EventSubscriptionController) CreateEventSubscription(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

CreateEventSubscription - Create EventSubscription Header

func (*EventSubscriptionController) DeleteEventSubscription

DeleteEventSubscription - DeleteEventSubscription

func (*EventSubscriptionController) GetEventSubscriptionByCarrierEventSubscriptionRequestReference

func (esc *EventSubscriptionController) GetEventSubscriptionByCarrierEventSubscriptionRequestReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)

GetEventSubscriptionByCarrierEventSubscriptionRequestReference - GetEventSubscriptionByCarrierEventSubscriptionRequestReference EventSubscription

func (*EventSubscriptionController) GetEventSubscriptions

func (esc *EventSubscriptionController) GetEventSubscriptions(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)

GetEventSubscriptions - used to view all EventSubscription

func (*EventSubscriptionController) ServeHTTP

ServeHTTP - parse url and call controller action

Jump to

Keyboard shortcuts

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