Documentation
¶
Index ¶
- func New(ctx context.Context, cfg *Config, auth auth.IAuth, svc Service) *grpc.Server
- type Analytics
- func (a *Analytics) GetUserAnalytics(ctx context.Context, req *analyticspb.GetUserAnalyticsRequest) (res *analyticspb.GetUserAnalyticsResponse, err error)
- func (a *Analytics) GetWorkflowAnalytics(ctx context.Context, req *analyticspb.GetWorkflowAnalyticsRequest) (res *analyticspb.GetWorkflowAnalyticsResponse, err error)
- type Config
- type Service
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Analytics ¶
type Analytics struct {
// contains filtered or unexported fields
}
Analytics represents the analytics-service.
func (*Analytics) GetUserAnalytics ¶
func (a *Analytics) GetUserAnalytics(ctx context.Context, req *analyticspb.GetUserAnalyticsRequest) (res *analyticspb.GetUserAnalyticsResponse, err error)
GetUserAnalytics retrieves analytics data for a specific user.
func (*Analytics) GetWorkflowAnalytics ¶
func (a *Analytics) GetWorkflowAnalytics(ctx context.Context, req *analyticspb.GetWorkflowAnalyticsRequest) (res *analyticspb.GetWorkflowAnalyticsResponse, err error)
GetWorkflowAnalytics retrieves analytics data for a specific workflow.
type Config ¶
type Config struct {
Deadline time.Duration `json:"deadline"`
Environment string `json:"environment"`
TLSConfig *TLSConfig `json:"tls_config"`
}
Config holds the analytics-service configuration.
type Service ¶
type Service interface {
GetUserAnalytics(ctx context.Context, req *analyticspb.GetUserAnalyticsRequest) (*analyticsmodel.GetUserAnalyticsResponse, error)
GetWorkflowAnalytics(ctx context.Context, req *analyticspb.GetWorkflowAnalyticsRequest) (*analyticsmodel.GetWorkflowAnalyticsResponse, error)
}
Service defines the interface for analytics service operations.
Click to show internal directories.
Click to hide internal directories.