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 jit 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 jit controllers
Types ¶
type TimestampController ¶
type TimestampController struct { UserServiceClient partyproto.UserServiceClient TimestampServiceClient jitproto.TimestampServiceClient // contains filtered or unexported fields }
TimestampController - Create Timestamp Controller
func NewTimestampController ¶
func NewTimestampController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, timestampServiceClient jitproto.TimestampServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *TimestampController
NewTimestampController - Create Timestamp Handler
func (*TimestampController) CreateTimestamp ¶
func (cc *TimestampController) CreateTimestamp(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse)
CreateTimestamp - Create Timestamp Header
func (*TimestampController) ServeHTTP ¶
func (cc *TimestampController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP - parse url and call controller action
Click to show internal directories.
Click to hide internal directories.