Documentation ¶
Index ¶
- func Init(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, ...) error
- func InitTest(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, ...) error
- type PartyController
- func (pp *PartyController) CreateParty(ctxNew context.Context, w http.ResponseWriter, r *http.Request, ...)
- func (pp *PartyController) CreatePartyContactDetail(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (pp *PartyController) DeleteParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (pp *PartyController) GetParties(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, ...)
- func (pp *PartyController) GetParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (pp *PartyController) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (pp *PartyController) UpdateParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- type UController
- type UserController
- func (uc *UserController) ChangePassword(ctx context.Context, w http.ResponseWriter, r *http.Request, ...)
- func (uc *UserController) DeleteUser(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (uc *UserController) GetUser(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (uc *UserController) GetUserByEmail(ctx context.Context, w http.ResponseWriter, r *http.Request, ...)
- func (uc *UserController) GetUsers(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, ...)
- func (uc *UserController) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (uc *UserController) UpdateUser(ctxNew context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
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 ¶
func (pp *PartyController) CreateParty(ctxNew context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse)
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 ¶
func (pp *PartyController) DeleteParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
DeleteParty - delete Party
func (*PartyController) GetParties ¶
func (pp *PartyController) GetParties(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)
GetParties - used to view all Parties
func (*PartyController) GetParty ¶
func (pp *PartyController) GetParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
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 ¶
func (pp *PartyController) UpdateParty(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
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 ¶
func (uc *UserController) ChangePassword(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse)
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 ¶
func (uc *UserController) GetUser(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
GetUser - Get User Details
func (*UserController) GetUserByEmail ¶
func (uc *UserController) GetUserByEmail(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse)
GetUserByEmail - Get User By email
func (*UserController) GetUsers ¶
func (uc *UserController) GetUsers(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)
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