jitcontrollers

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: 17 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 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

CreateTimestamp - Create Timestamp Header

func (*TimestampController) ServeHTTP

func (cc *TimestampController) ServeHTTP(w http.ResponseWriter, r *http.Request)

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