partycontrollers

package
v0.0.0-...-94a8b92 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 22 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 party 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 party controllers

Types

type PartyController

type PartyController struct {
	PartyServiceClient partyproto.PartyServiceClient
	UserServiceClient  partyproto.UserServiceClient
	// contains filtered or unexported fields
}

PartyController - Create Party Controller

func NewPartyController

func NewPartyController(log *zap.Logger, partyServiceClient partyproto.PartyServiceClient, userServiceClient partyproto.UserServiceClient) *PartyController

NewPartyController - Create Party Handler

func (*PartyController) CreateParty

CreateParty - used to Create Party

func (*PartyController) CreatePartyContactDetail

func (pp *PartyController) CreatePartyContactDetail(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)

CreatePartyContactDetail - used to Create Party Contact

func (*PartyController) DeleteParty

DeleteParty - delete Party

func (*PartyController) GetParties

GetParties - used to view all Parties

func (*PartyController) GetParty

GetParty - used to view Party

func (*PartyController) ServeHTTP

func (pp *PartyController) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - parse url and call controller action

func (*PartyController) UpdateParty

UpdateParty - Update Party

type UController

type UController struct {
	UserServiceClient partyproto.UserServiceClient
	// contains filtered or unexported fields
}

UController - create u controller

func NewUController

func NewUController(log *zap.Logger, s partyproto.UserServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *UController

NewUController - create u handler

func (*UController) ServeHTTP

func (uc *UController) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - parse url and call controller action

type UserController

type UserController struct {
	UserServiceClient partyproto.UserServiceClient
	// contains filtered or unexported fields
}

UserController - used for

func NewUserController

func NewUserController(log *zap.Logger, s partyproto.UserServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *UserController

NewUserController - Used to create a users handler

func (*UserController) ChangePassword

ChangePassword - Changes Password

func (*UserController) DeleteUser

func (uc *UserController) DeleteUser(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

DeleteUser - delete user

func (*UserController) GetUser

GetUser - Get User Details

func (*UserController) GetUserByEmail

GetUserByEmail - Get User By email

func (*UserController) GetUsers

GetUsers - Get Users

func (*UserController) ServeHTTP

func (uc *UserController) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - parse url and call controller action

func (*UserController) UpdateUser

func (uc *UserController) UpdateUser(ctxNew context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

UpdateUser - Update User

Jump to

Keyboard shortcuts

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