Documentation ¶
Overview ¶
Package feedbackv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFeedbackAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFeedbackAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FeedbackAPIClient) error
- func RegisterFeedbackAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFeedbackAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FeedbackAPIServer) error
- func RegisterFeedbackAPIServer(s grpc.ServiceRegistrar, srv FeedbackAPIServer)
- type EmojiRating
- func (EmojiRating) Descriptor() protoreflect.EnumDescriptor
- func (x EmojiRating) Enum() *EmojiRating
- func (EmojiRating) EnumDescriptor() ([]byte, []int)deprecated
- func (x EmojiRating) Number() protoreflect.EnumNumber
- func (x EmojiRating) String() string
- func (EmojiRating) Type() protoreflect.EnumType
- type Feedback
- func (*Feedback) Descriptor() ([]byte, []int)deprecated
- func (x *Feedback) GetFeedbackType() string
- func (x *Feedback) GetFreeformResponse() string
- func (x *Feedback) GetRatingLabel() string
- func (x *Feedback) GetRatingScale() *RatingScale
- func (*Feedback) ProtoMessage()
- func (x *Feedback) ProtoReflect() protoreflect.Message
- func (x *Feedback) Reset()
- func (x *Feedback) String() string
- func (m *Feedback) Validate() error
- func (m *Feedback) ValidateAll() error
- type FeedbackAPIClient
- type FeedbackAPIServer
- type FeedbackMetadata
- func (*FeedbackMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *FeedbackMetadata) GetOrigin() Origin
- func (x *FeedbackMetadata) GetSurvey() *Survey
- func (x *FeedbackMetadata) GetUrlSearchParams() string
- func (x *FeedbackMetadata) GetUserSubmitted() bool
- func (*FeedbackMetadata) ProtoMessage()
- func (x *FeedbackMetadata) ProtoReflect() protoreflect.Message
- func (x *FeedbackMetadata) Reset()
- func (x *FeedbackMetadata) String() string
- func (m *FeedbackMetadata) Validate() error
- func (m *FeedbackMetadata) ValidateAll() error
- type FeedbackMetadataMultiError
- type FeedbackMetadataValidationError
- func (e FeedbackMetadataValidationError) Cause() error
- func (e FeedbackMetadataValidationError) Error() string
- func (e FeedbackMetadataValidationError) ErrorName() string
- func (e FeedbackMetadataValidationError) Field() string
- func (e FeedbackMetadataValidationError) Key() bool
- func (e FeedbackMetadataValidationError) Reason() string
- type FeedbackMultiError
- type FeedbackValidationError
- type GetSurveysRequest
- func (*GetSurveysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSurveysRequest) GetOrigins() []Origin
- func (*GetSurveysRequest) ProtoMessage()
- func (x *GetSurveysRequest) ProtoReflect() protoreflect.Message
- func (x *GetSurveysRequest) Reset()
- func (x *GetSurveysRequest) String() string
- func (m *GetSurveysRequest) Validate() error
- func (m *GetSurveysRequest) ValidateAll() error
- type GetSurveysRequestMultiError
- type GetSurveysRequestValidationError
- func (e GetSurveysRequestValidationError) Cause() error
- func (e GetSurveysRequestValidationError) Error() string
- func (e GetSurveysRequestValidationError) ErrorName() string
- func (e GetSurveysRequestValidationError) Field() string
- func (e GetSurveysRequestValidationError) Key() bool
- func (e GetSurveysRequestValidationError) Reason() string
- type GetSurveysResponse
- func (*GetSurveysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSurveysResponse) GetOriginSurvey() map[string]*Survey
- func (*GetSurveysResponse) ProtoMessage()
- func (x *GetSurveysResponse) ProtoReflect() protoreflect.Message
- func (x *GetSurveysResponse) Reset()
- func (x *GetSurveysResponse) String() string
- func (m *GetSurveysResponse) Validate() error
- func (m *GetSurveysResponse) ValidateAll() error
- type GetSurveysResponseMultiError
- type GetSurveysResponseValidationError
- func (e GetSurveysResponseValidationError) Cause() error
- func (e GetSurveysResponseValidationError) Error() string
- func (e GetSurveysResponseValidationError) ErrorName() string
- func (e GetSurveysResponseValidationError) Field() string
- func (e GetSurveysResponseValidationError) Key() bool
- func (e GetSurveysResponseValidationError) Reason() string
- type Origin
- type RatingLabel
- func (*RatingLabel) Descriptor() ([]byte, []int)deprecated
- func (x *RatingLabel) GetEmoji() EmojiRating
- func (x *RatingLabel) GetLabel() string
- func (m *RatingLabel) GetType() isRatingLabel_Type
- func (*RatingLabel) ProtoMessage()
- func (x *RatingLabel) ProtoReflect() protoreflect.Message
- func (x *RatingLabel) Reset()
- func (x *RatingLabel) String() string
- func (m *RatingLabel) Validate() error
- func (m *RatingLabel) ValidateAll() error
- type RatingLabelMultiError
- type RatingLabelValidationError
- func (e RatingLabelValidationError) Cause() error
- func (e RatingLabelValidationError) Error() string
- func (e RatingLabelValidationError) ErrorName() string
- func (e RatingLabelValidationError) Field() string
- func (e RatingLabelValidationError) Key() bool
- func (e RatingLabelValidationError) Reason() string
- type RatingLabel_Emoji
- type RatingScale
- func (*RatingScale) Descriptor() ([]byte, []int)deprecated
- func (x *RatingScale) GetEmoji() EmojiRating
- func (m *RatingScale) GetType() isRatingScale_Type
- func (*RatingScale) ProtoMessage()
- func (x *RatingScale) ProtoReflect() protoreflect.Message
- func (x *RatingScale) Reset()
- func (x *RatingScale) String() string
- func (m *RatingScale) Validate() error
- func (m *RatingScale) ValidateAll() error
- type RatingScaleMultiError
- type RatingScaleValidationError
- func (e RatingScaleValidationError) Cause() error
- func (e RatingScaleValidationError) Error() string
- func (e RatingScaleValidationError) ErrorName() string
- func (e RatingScaleValidationError) Field() string
- func (e RatingScaleValidationError) Key() bool
- func (e RatingScaleValidationError) Reason() string
- type RatingScale_Emoji
- type SubmitFeedbackRequest
- func (*SubmitFeedbackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitFeedbackRequest) GetFeedback() *Feedback
- func (x *SubmitFeedbackRequest) GetId() string
- func (x *SubmitFeedbackRequest) GetMetadata() *FeedbackMetadata
- func (x *SubmitFeedbackRequest) GetUserId() string
- func (*SubmitFeedbackRequest) ProtoMessage()
- func (x *SubmitFeedbackRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitFeedbackRequest) Reset()
- func (x *SubmitFeedbackRequest) String() string
- func (m *SubmitFeedbackRequest) Validate() error
- func (m *SubmitFeedbackRequest) ValidateAll() error
- type SubmitFeedbackRequestMultiError
- type SubmitFeedbackRequestValidationError
- func (e SubmitFeedbackRequestValidationError) Cause() error
- func (e SubmitFeedbackRequestValidationError) Error() string
- func (e SubmitFeedbackRequestValidationError) ErrorName() string
- func (e SubmitFeedbackRequestValidationError) Field() string
- func (e SubmitFeedbackRequestValidationError) Key() bool
- func (e SubmitFeedbackRequestValidationError) Reason() string
- type SubmitFeedbackResponse
- func (*SubmitFeedbackResponse) Descriptor() ([]byte, []int)deprecated
- func (*SubmitFeedbackResponse) ProtoMessage()
- func (x *SubmitFeedbackResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitFeedbackResponse) Reset()
- func (x *SubmitFeedbackResponse) String() string
- func (m *SubmitFeedbackResponse) Validate() error
- func (m *SubmitFeedbackResponse) ValidateAll() error
- type SubmitFeedbackResponseMultiError
- type SubmitFeedbackResponseValidationError
- func (e SubmitFeedbackResponseValidationError) Cause() error
- func (e SubmitFeedbackResponseValidationError) Error() string
- func (e SubmitFeedbackResponseValidationError) ErrorName() string
- func (e SubmitFeedbackResponseValidationError) Field() string
- func (e SubmitFeedbackResponseValidationError) Key() bool
- func (e SubmitFeedbackResponseValidationError) Reason() string
- type Survey
- func (*Survey) Descriptor() ([]byte, []int)deprecated
- func (x *Survey) GetFreeformPrompt() string
- func (x *Survey) GetPrompt() string
- func (x *Survey) GetRatingLabels() []*RatingLabel
- func (*Survey) ProtoMessage()
- func (x *Survey) ProtoReflect() protoreflect.Message
- func (x *Survey) Reset()
- func (x *Survey) String() string
- func (m *Survey) Validate() error
- func (m *Survey) ValidateAll() error
- type SurveyMultiError
- type SurveyValidationError
- type UnimplementedFeedbackAPIServer
- type UnsafeFeedbackAPIServer
Constants ¶
const ( FeedbackAPI_GetSurveys_FullMethodName = "/clutch.feedback.v1.FeedbackAPI/GetSurveys" FeedbackAPI_SubmitFeedback_FullMethodName = "/clutch.feedback.v1.FeedbackAPI/SubmitFeedback" )
Variables ¶
var ( Origin_name = map[int32]string{ 0: "ORIGIN_UNSPECIFIED", 1: "HEADER", 2: "WIZARD", } Origin_value = map[string]int32{ "ORIGIN_UNSPECIFIED": 0, "HEADER": 1, "WIZARD": 2, } )
Enum value maps for Origin.
var ( EmojiRating_name = map[int32]string{ 0: "EMOJI_UNSPECIFIED", 1: "SAD", 2: "NEUTRAL", 3: "HAPPY", } EmojiRating_value = map[string]int32{ "EMOJI_UNSPECIFIED": 0, "SAD": 1, "NEUTRAL": 2, "HAPPY": 3, } )
Enum value maps for EmojiRating.
var FeedbackAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "clutch.feedback.v1.FeedbackAPI", HandlerType: (*FeedbackAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSurveys", Handler: _FeedbackAPI_GetSurveys_Handler, }, { MethodName: "SubmitFeedback", Handler: _FeedbackAPI_SubmitFeedback_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "feedback/v1/feedback.proto", }
FeedbackAPI_ServiceDesc is the grpc.ServiceDesc for FeedbackAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_feedback_v1_feedback_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFeedbackAPIHandler ¶
func RegisterFeedbackAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFeedbackAPIHandler registers the http handlers for service FeedbackAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFeedbackAPIHandlerClient ¶
func RegisterFeedbackAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FeedbackAPIClient) error
RegisterFeedbackAPIHandlerClient registers the http handlers for service FeedbackAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FeedbackAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FeedbackAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FeedbackAPIClient" to call the correct interceptors.
func RegisterFeedbackAPIHandlerFromEndpoint ¶
func RegisterFeedbackAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFeedbackAPIHandlerFromEndpoint is same as RegisterFeedbackAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFeedbackAPIHandlerServer ¶
func RegisterFeedbackAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FeedbackAPIServer) error
RegisterFeedbackAPIHandlerServer registers the http handlers for service FeedbackAPI to "mux". UnaryRPC :call FeedbackAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFeedbackAPIHandlerFromEndpoint instead.
func RegisterFeedbackAPIServer ¶
func RegisterFeedbackAPIServer(s grpc.ServiceRegistrar, srv FeedbackAPIServer)
Types ¶
type EmojiRating ¶
type EmojiRating int32
const ( // these are used to compute a feedback score out of 100 EmojiRating_EMOJI_UNSPECIFIED EmojiRating = 0 EmojiRating_SAD EmojiRating = 1 EmojiRating_NEUTRAL EmojiRating = 2 EmojiRating_HAPPY EmojiRating = 3 )
func (EmojiRating) Descriptor ¶
func (EmojiRating) Descriptor() protoreflect.EnumDescriptor
func (EmojiRating) Enum ¶
func (x EmojiRating) Enum() *EmojiRating
func (EmojiRating) EnumDescriptor
deprecated
func (EmojiRating) EnumDescriptor() ([]byte, []int)
Deprecated: Use EmojiRating.Descriptor instead.
func (EmojiRating) Number ¶
func (x EmojiRating) Number() protoreflect.EnumNumber
func (EmojiRating) String ¶
func (x EmojiRating) String() string
func (EmojiRating) Type ¶
func (EmojiRating) Type() protoreflect.EnumType
type Feedback ¶
type Feedback struct { // workflow url path, workflow name or area of feedback that the submission is for FeedbackType string `protobuf:"bytes,1,opt,name=feedback_type,json=feedbackType,proto3" json:"feedback_type,omitempty"` // the text option the user selected (i.e. bad/ok/great) RatingLabel string `protobuf:"bytes,2,opt,name=rating_label,json=ratingLabel,proto3" json:"rating_label,omitempty"` // the corresponding rating scale selection RatingScale *RatingScale `protobuf:"bytes,3,opt,name=rating_scale,json=ratingScale,proto3" json:"rating_scale,omitempty"` // (optional) freeform input FreeformResponse string `protobuf:"bytes,4,opt,name=freeform_response,json=freeformResponse,proto3" json:"freeform_response,omitempty"` // contains filtered or unexported fields }
func (*Feedback) Descriptor
deprecated
func (*Feedback) GetFeedbackType ¶
func (*Feedback) GetFreeformResponse ¶
func (*Feedback) GetRatingLabel ¶
func (*Feedback) GetRatingScale ¶
func (x *Feedback) GetRatingScale() *RatingScale
func (*Feedback) ProtoMessage ¶
func (*Feedback) ProtoMessage()
func (*Feedback) ProtoReflect ¶
func (x *Feedback) ProtoReflect() protoreflect.Message
func (*Feedback) Validate ¶
Validate checks the field values on Feedback with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Feedback) ValidateAll ¶
ValidateAll checks the field values on Feedback with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FeedbackMultiError, or nil if none found.
type FeedbackAPIClient ¶
type FeedbackAPIClient interface { GetSurveys(ctx context.Context, in *GetSurveysRequest, opts ...grpc.CallOption) (*GetSurveysResponse, error) SubmitFeedback(ctx context.Context, in *SubmitFeedbackRequest, opts ...grpc.CallOption) (*SubmitFeedbackResponse, error) }
FeedbackAPIClient is the client API for FeedbackAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFeedbackAPIClient ¶
func NewFeedbackAPIClient(cc grpc.ClientConnInterface) FeedbackAPIClient
type FeedbackAPIServer ¶
type FeedbackAPIServer interface { GetSurveys(context.Context, *GetSurveysRequest) (*GetSurveysResponse, error) SubmitFeedback(context.Context, *SubmitFeedbackRequest) (*SubmitFeedbackResponse, error) }
FeedbackAPIServer is the server API for FeedbackAPI service. All implementations should embed UnimplementedFeedbackAPIServer for forward compatibility
type FeedbackMetadata ¶
type FeedbackMetadata struct { // extra info on the feedback (i.e. the survey question, the rating options, the feedback origin, etc.) Origin Origin `protobuf:"varint,1,opt,name=origin,proto3,enum=clutch.feedback.v1.Origin" json:"origin,omitempty"` Survey *Survey `protobuf:"bytes,2,opt,name=survey,proto3" json:"survey,omitempty"` UserSubmitted bool `protobuf:"varint,3,opt,name=user_submitted,json=userSubmitted,proto3" json:"user_submitted,omitempty"` UrlSearchParams string `protobuf:"bytes,4,opt,name=url_search_params,json=urlSearchParams,proto3" json:"url_search_params,omitempty"` // contains filtered or unexported fields }
func (*FeedbackMetadata) Descriptor
deprecated
func (*FeedbackMetadata) Descriptor() ([]byte, []int)
Deprecated: Use FeedbackMetadata.ProtoReflect.Descriptor instead.
func (*FeedbackMetadata) GetOrigin ¶
func (x *FeedbackMetadata) GetOrigin() Origin
func (*FeedbackMetadata) GetSurvey ¶
func (x *FeedbackMetadata) GetSurvey() *Survey
func (*FeedbackMetadata) GetUrlSearchParams ¶
func (x *FeedbackMetadata) GetUrlSearchParams() string
func (*FeedbackMetadata) GetUserSubmitted ¶
func (x *FeedbackMetadata) GetUserSubmitted() bool
func (*FeedbackMetadata) ProtoMessage ¶
func (*FeedbackMetadata) ProtoMessage()
func (*FeedbackMetadata) ProtoReflect ¶
func (x *FeedbackMetadata) ProtoReflect() protoreflect.Message
func (*FeedbackMetadata) Reset ¶
func (x *FeedbackMetadata) Reset()
func (*FeedbackMetadata) String ¶
func (x *FeedbackMetadata) String() string
func (*FeedbackMetadata) Validate ¶
func (m *FeedbackMetadata) Validate() error
Validate checks the field values on FeedbackMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FeedbackMetadata) ValidateAll ¶
func (m *FeedbackMetadata) ValidateAll() error
ValidateAll checks the field values on FeedbackMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FeedbackMetadataMultiError, or nil if none found.
type FeedbackMetadataMultiError ¶
type FeedbackMetadataMultiError []error
FeedbackMetadataMultiError is an error wrapping multiple validation errors returned by FeedbackMetadata.ValidateAll() if the designated constraints aren't met.
func (FeedbackMetadataMultiError) AllErrors ¶
func (m FeedbackMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FeedbackMetadataMultiError) Error ¶
func (m FeedbackMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FeedbackMetadataValidationError ¶
type FeedbackMetadataValidationError struct {
// contains filtered or unexported fields
}
FeedbackMetadataValidationError is the validation error returned by FeedbackMetadata.Validate if the designated constraints aren't met.
func (FeedbackMetadataValidationError) Cause ¶
func (e FeedbackMetadataValidationError) Cause() error
Cause function returns cause value.
func (FeedbackMetadataValidationError) Error ¶
func (e FeedbackMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (FeedbackMetadataValidationError) ErrorName ¶
func (e FeedbackMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (FeedbackMetadataValidationError) Field ¶
func (e FeedbackMetadataValidationError) Field() string
Field function returns field value.
func (FeedbackMetadataValidationError) Key ¶
func (e FeedbackMetadataValidationError) Key() bool
Key function returns key value.
func (FeedbackMetadataValidationError) Reason ¶
func (e FeedbackMetadataValidationError) Reason() string
Reason function returns reason value.
type FeedbackMultiError ¶
type FeedbackMultiError []error
FeedbackMultiError is an error wrapping multiple validation errors returned by Feedback.ValidateAll() if the designated constraints aren't met.
func (FeedbackMultiError) AllErrors ¶
func (m FeedbackMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FeedbackMultiError) Error ¶
func (m FeedbackMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FeedbackValidationError ¶
type FeedbackValidationError struct {
// contains filtered or unexported fields
}
FeedbackValidationError is the validation error returned by Feedback.Validate if the designated constraints aren't met.
func (FeedbackValidationError) Cause ¶
func (e FeedbackValidationError) Cause() error
Cause function returns cause value.
func (FeedbackValidationError) Error ¶
func (e FeedbackValidationError) Error() string
Error satisfies the builtin error interface
func (FeedbackValidationError) ErrorName ¶
func (e FeedbackValidationError) ErrorName() string
ErrorName returns error name.
func (FeedbackValidationError) Field ¶
func (e FeedbackValidationError) Field() string
Field function returns field value.
func (FeedbackValidationError) Key ¶
func (e FeedbackValidationError) Key() bool
Key function returns key value.
func (FeedbackValidationError) Reason ¶
func (e FeedbackValidationError) Reason() string
Reason function returns reason value.
type GetSurveysRequest ¶
type GetSurveysRequest struct { // the origin of the feedback entry. multiple origins can be passed in the request to return their specific survey Origins []Origin `protobuf:"varint,1,rep,packed,name=origins,proto3,enum=clutch.feedback.v1.Origin" json:"origins,omitempty"` // future: add a user field if rules are implemented for whether a user should see the feedback survey // contains filtered or unexported fields }
func (*GetSurveysRequest) Descriptor
deprecated
func (*GetSurveysRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSurveysRequest.ProtoReflect.Descriptor instead.
func (*GetSurveysRequest) GetOrigins ¶
func (x *GetSurveysRequest) GetOrigins() []Origin
func (*GetSurveysRequest) ProtoMessage ¶
func (*GetSurveysRequest) ProtoMessage()
func (*GetSurveysRequest) ProtoReflect ¶
func (x *GetSurveysRequest) ProtoReflect() protoreflect.Message
func (*GetSurveysRequest) Reset ¶
func (x *GetSurveysRequest) Reset()
func (*GetSurveysRequest) String ¶
func (x *GetSurveysRequest) String() string
func (*GetSurveysRequest) Validate ¶
func (m *GetSurveysRequest) Validate() error
Validate checks the field values on GetSurveysRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetSurveysRequest) ValidateAll ¶
func (m *GetSurveysRequest) ValidateAll() error
ValidateAll checks the field values on GetSurveysRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSurveysRequestMultiError, or nil if none found.
type GetSurveysRequestMultiError ¶
type GetSurveysRequestMultiError []error
GetSurveysRequestMultiError is an error wrapping multiple validation errors returned by GetSurveysRequest.ValidateAll() if the designated constraints aren't met.
func (GetSurveysRequestMultiError) AllErrors ¶
func (m GetSurveysRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSurveysRequestMultiError) Error ¶
func (m GetSurveysRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSurveysRequestValidationError ¶
type GetSurveysRequestValidationError struct {
// contains filtered or unexported fields
}
GetSurveysRequestValidationError is the validation error returned by GetSurveysRequest.Validate if the designated constraints aren't met.
func (GetSurveysRequestValidationError) Cause ¶
func (e GetSurveysRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSurveysRequestValidationError) Error ¶
func (e GetSurveysRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSurveysRequestValidationError) ErrorName ¶
func (e GetSurveysRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSurveysRequestValidationError) Field ¶
func (e GetSurveysRequestValidationError) Field() string
Field function returns field value.
func (GetSurveysRequestValidationError) Key ¶
func (e GetSurveysRequestValidationError) Key() bool
Key function returns key value.
func (GetSurveysRequestValidationError) Reason ¶
func (e GetSurveysRequestValidationError) Reason() string
Reason function returns reason value.
type GetSurveysResponse ¶
type GetSurveysResponse struct { // the key will be the feedback origin name OriginSurvey map[string]*Survey `` // future: add a field to indicate if a user should see the feedback survey if rules are implemented /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSurveysResponse) Descriptor
deprecated
func (*GetSurveysResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSurveysResponse.ProtoReflect.Descriptor instead.
func (*GetSurveysResponse) GetOriginSurvey ¶
func (x *GetSurveysResponse) GetOriginSurvey() map[string]*Survey
func (*GetSurveysResponse) ProtoMessage ¶
func (*GetSurveysResponse) ProtoMessage()
func (*GetSurveysResponse) ProtoReflect ¶
func (x *GetSurveysResponse) ProtoReflect() protoreflect.Message
func (*GetSurveysResponse) Reset ¶
func (x *GetSurveysResponse) Reset()
func (*GetSurveysResponse) String ¶
func (x *GetSurveysResponse) String() string
func (*GetSurveysResponse) Validate ¶
func (m *GetSurveysResponse) Validate() error
Validate checks the field values on GetSurveysResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetSurveysResponse) ValidateAll ¶
func (m *GetSurveysResponse) ValidateAll() error
ValidateAll checks the field values on GetSurveysResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSurveysResponseMultiError, or nil if none found.
type GetSurveysResponseMultiError ¶
type GetSurveysResponseMultiError []error
GetSurveysResponseMultiError is an error wrapping multiple validation errors returned by GetSurveysResponse.ValidateAll() if the designated constraints aren't met.
func (GetSurveysResponseMultiError) AllErrors ¶
func (m GetSurveysResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSurveysResponseMultiError) Error ¶
func (m GetSurveysResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSurveysResponseValidationError ¶
type GetSurveysResponseValidationError struct {
// contains filtered or unexported fields
}
GetSurveysResponseValidationError is the validation error returned by GetSurveysResponse.Validate if the designated constraints aren't met.
func (GetSurveysResponseValidationError) Cause ¶
func (e GetSurveysResponseValidationError) Cause() error
Cause function returns cause value.
func (GetSurveysResponseValidationError) Error ¶
func (e GetSurveysResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetSurveysResponseValidationError) ErrorName ¶
func (e GetSurveysResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetSurveysResponseValidationError) Field ¶
func (e GetSurveysResponseValidationError) Field() string
Field function returns field value.
func (GetSurveysResponseValidationError) Key ¶
func (e GetSurveysResponseValidationError) Key() bool
Key function returns key value.
func (GetSurveysResponseValidationError) Reason ¶
func (e GetSurveysResponseValidationError) Reason() string
Reason function returns reason value.
type Origin ¶
type Origin int32
func (Origin) Descriptor ¶
func (Origin) Descriptor() protoreflect.EnumDescriptor
func (Origin) EnumDescriptor
deprecated
func (Origin) Number ¶
func (x Origin) Number() protoreflect.EnumNumber
func (Origin) Type ¶
func (Origin) Type() protoreflect.EnumType
type RatingLabel ¶
type RatingLabel struct { // Types that are assignable to Type: // // *RatingLabel_Emoji Type isRatingLabel_Type `protobuf_oneof:"type"` // the corresponding text to show to the user (i.e bad/ok/great) Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*RatingLabel) Descriptor
deprecated
func (*RatingLabel) Descriptor() ([]byte, []int)
Deprecated: Use RatingLabel.ProtoReflect.Descriptor instead.
func (*RatingLabel) GetEmoji ¶
func (x *RatingLabel) GetEmoji() EmojiRating
func (*RatingLabel) GetLabel ¶
func (x *RatingLabel) GetLabel() string
func (*RatingLabel) GetType ¶
func (m *RatingLabel) GetType() isRatingLabel_Type
func (*RatingLabel) ProtoMessage ¶
func (*RatingLabel) ProtoMessage()
func (*RatingLabel) ProtoReflect ¶
func (x *RatingLabel) ProtoReflect() protoreflect.Message
func (*RatingLabel) Reset ¶
func (x *RatingLabel) Reset()
func (*RatingLabel) String ¶
func (x *RatingLabel) String() string
func (*RatingLabel) Validate ¶
func (m *RatingLabel) Validate() error
Validate checks the field values on RatingLabel with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RatingLabel) ValidateAll ¶
func (m *RatingLabel) ValidateAll() error
ValidateAll checks the field values on RatingLabel with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RatingLabelMultiError, or nil if none found.
type RatingLabelMultiError ¶
type RatingLabelMultiError []error
RatingLabelMultiError is an error wrapping multiple validation errors returned by RatingLabel.ValidateAll() if the designated constraints aren't met.
func (RatingLabelMultiError) AllErrors ¶
func (m RatingLabelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RatingLabelMultiError) Error ¶
func (m RatingLabelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RatingLabelValidationError ¶
type RatingLabelValidationError struct {
// contains filtered or unexported fields
}
RatingLabelValidationError is the validation error returned by RatingLabel.Validate if the designated constraints aren't met.
func (RatingLabelValidationError) Cause ¶
func (e RatingLabelValidationError) Cause() error
Cause function returns cause value.
func (RatingLabelValidationError) Error ¶
func (e RatingLabelValidationError) Error() string
Error satisfies the builtin error interface
func (RatingLabelValidationError) ErrorName ¶
func (e RatingLabelValidationError) ErrorName() string
ErrorName returns error name.
func (RatingLabelValidationError) Field ¶
func (e RatingLabelValidationError) Field() string
Field function returns field value.
func (RatingLabelValidationError) Key ¶
func (e RatingLabelValidationError) Key() bool
Key function returns key value.
func (RatingLabelValidationError) Reason ¶
func (e RatingLabelValidationError) Reason() string
Reason function returns reason value.
type RatingLabel_Emoji ¶
type RatingLabel_Emoji struct { // the emoji type from the defined enums (i.e sad/neutral/happy) Emoji EmojiRating `protobuf:"varint,1,opt,name=emoji,proto3,enum=clutch.feedback.v1.EmojiRating,oneof"` }
type RatingScale ¶
type RatingScale struct { // Types that are assignable to Type: // // *RatingScale_Emoji Type isRatingScale_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*RatingScale) Descriptor
deprecated
func (*RatingScale) Descriptor() ([]byte, []int)
Deprecated: Use RatingScale.ProtoReflect.Descriptor instead.
func (*RatingScale) GetEmoji ¶
func (x *RatingScale) GetEmoji() EmojiRating
func (*RatingScale) GetType ¶
func (m *RatingScale) GetType() isRatingScale_Type
func (*RatingScale) ProtoMessage ¶
func (*RatingScale) ProtoMessage()
func (*RatingScale) ProtoReflect ¶
func (x *RatingScale) ProtoReflect() protoreflect.Message
func (*RatingScale) Reset ¶
func (x *RatingScale) Reset()
func (*RatingScale) String ¶
func (x *RatingScale) String() string
func (*RatingScale) Validate ¶
func (m *RatingScale) Validate() error
Validate checks the field values on RatingScale with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RatingScale) ValidateAll ¶
func (m *RatingScale) ValidateAll() error
ValidateAll checks the field values on RatingScale with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RatingScaleMultiError, or nil if none found.
type RatingScaleMultiError ¶
type RatingScaleMultiError []error
RatingScaleMultiError is an error wrapping multiple validation errors returned by RatingScale.ValidateAll() if the designated constraints aren't met.
func (RatingScaleMultiError) AllErrors ¶
func (m RatingScaleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RatingScaleMultiError) Error ¶
func (m RatingScaleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RatingScaleValidationError ¶
type RatingScaleValidationError struct {
// contains filtered or unexported fields
}
RatingScaleValidationError is the validation error returned by RatingScale.Validate if the designated constraints aren't met.
func (RatingScaleValidationError) Cause ¶
func (e RatingScaleValidationError) Cause() error
Cause function returns cause value.
func (RatingScaleValidationError) Error ¶
func (e RatingScaleValidationError) Error() string
Error satisfies the builtin error interface
func (RatingScaleValidationError) ErrorName ¶
func (e RatingScaleValidationError) ErrorName() string
ErrorName returns error name.
func (RatingScaleValidationError) Field ¶
func (e RatingScaleValidationError) Field() string
Field function returns field value.
func (RatingScaleValidationError) Key ¶
func (e RatingScaleValidationError) Key() bool
Key function returns key value.
func (RatingScaleValidationError) Reason ¶
func (e RatingScaleValidationError) Reason() string
Reason function returns reason value.
type RatingScale_Emoji ¶
type RatingScale_Emoji struct {
Emoji EmojiRating `protobuf:"varint,1,opt,name=emoji,proto3,enum=clutch.feedback.v1.EmojiRating,oneof"`
}
type SubmitFeedbackRequest ¶
type SubmitFeedbackRequest struct { // client-genereated unique feedback id, which we will also use to update the feedback (essentially replace with the // latest) Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // user's email UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Feedback *Feedback `protobuf:"bytes,3,opt,name=feedback,proto3" json:"feedback,omitempty"` Metadata *FeedbackMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SubmitFeedbackRequest) Descriptor
deprecated
func (*SubmitFeedbackRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitFeedbackRequest.ProtoReflect.Descriptor instead.
func (*SubmitFeedbackRequest) GetFeedback ¶
func (x *SubmitFeedbackRequest) GetFeedback() *Feedback
func (*SubmitFeedbackRequest) GetId ¶
func (x *SubmitFeedbackRequest) GetId() string
func (*SubmitFeedbackRequest) GetMetadata ¶
func (x *SubmitFeedbackRequest) GetMetadata() *FeedbackMetadata
func (*SubmitFeedbackRequest) GetUserId ¶
func (x *SubmitFeedbackRequest) GetUserId() string
func (*SubmitFeedbackRequest) ProtoMessage ¶
func (*SubmitFeedbackRequest) ProtoMessage()
func (*SubmitFeedbackRequest) ProtoReflect ¶
func (x *SubmitFeedbackRequest) ProtoReflect() protoreflect.Message
func (*SubmitFeedbackRequest) Reset ¶
func (x *SubmitFeedbackRequest) Reset()
func (*SubmitFeedbackRequest) String ¶
func (x *SubmitFeedbackRequest) String() string
func (*SubmitFeedbackRequest) Validate ¶
func (m *SubmitFeedbackRequest) Validate() error
Validate checks the field values on SubmitFeedbackRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubmitFeedbackRequest) ValidateAll ¶
func (m *SubmitFeedbackRequest) ValidateAll() error
ValidateAll checks the field values on SubmitFeedbackRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitFeedbackRequestMultiError, or nil if none found.
type SubmitFeedbackRequestMultiError ¶
type SubmitFeedbackRequestMultiError []error
SubmitFeedbackRequestMultiError is an error wrapping multiple validation errors returned by SubmitFeedbackRequest.ValidateAll() if the designated constraints aren't met.
func (SubmitFeedbackRequestMultiError) AllErrors ¶
func (m SubmitFeedbackRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubmitFeedbackRequestMultiError) Error ¶
func (m SubmitFeedbackRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubmitFeedbackRequestValidationError ¶
type SubmitFeedbackRequestValidationError struct {
// contains filtered or unexported fields
}
SubmitFeedbackRequestValidationError is the validation error returned by SubmitFeedbackRequest.Validate if the designated constraints aren't met.
func (SubmitFeedbackRequestValidationError) Cause ¶
func (e SubmitFeedbackRequestValidationError) Cause() error
Cause function returns cause value.
func (SubmitFeedbackRequestValidationError) Error ¶
func (e SubmitFeedbackRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitFeedbackRequestValidationError) ErrorName ¶
func (e SubmitFeedbackRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitFeedbackRequestValidationError) Field ¶
func (e SubmitFeedbackRequestValidationError) Field() string
Field function returns field value.
func (SubmitFeedbackRequestValidationError) Key ¶
func (e SubmitFeedbackRequestValidationError) Key() bool
Key function returns key value.
func (SubmitFeedbackRequestValidationError) Reason ¶
func (e SubmitFeedbackRequestValidationError) Reason() string
Reason function returns reason value.
type SubmitFeedbackResponse ¶
type SubmitFeedbackResponse struct {
// contains filtered or unexported fields
}
func (*SubmitFeedbackResponse) Descriptor
deprecated
func (*SubmitFeedbackResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitFeedbackResponse.ProtoReflect.Descriptor instead.
func (*SubmitFeedbackResponse) ProtoMessage ¶
func (*SubmitFeedbackResponse) ProtoMessage()
func (*SubmitFeedbackResponse) ProtoReflect ¶
func (x *SubmitFeedbackResponse) ProtoReflect() protoreflect.Message
func (*SubmitFeedbackResponse) Reset ¶
func (x *SubmitFeedbackResponse) Reset()
func (*SubmitFeedbackResponse) String ¶
func (x *SubmitFeedbackResponse) String() string
func (*SubmitFeedbackResponse) Validate ¶
func (m *SubmitFeedbackResponse) Validate() error
Validate checks the field values on SubmitFeedbackResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SubmitFeedbackResponse) ValidateAll ¶
func (m *SubmitFeedbackResponse) ValidateAll() error
ValidateAll checks the field values on SubmitFeedbackResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubmitFeedbackResponseMultiError, or nil if none found.
type SubmitFeedbackResponseMultiError ¶
type SubmitFeedbackResponseMultiError []error
SubmitFeedbackResponseMultiError is an error wrapping multiple validation errors returned by SubmitFeedbackResponse.ValidateAll() if the designated constraints aren't met.
func (SubmitFeedbackResponseMultiError) AllErrors ¶
func (m SubmitFeedbackResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SubmitFeedbackResponseMultiError) Error ¶
func (m SubmitFeedbackResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SubmitFeedbackResponseValidationError ¶
type SubmitFeedbackResponseValidationError struct {
// contains filtered or unexported fields
}
SubmitFeedbackResponseValidationError is the validation error returned by SubmitFeedbackResponse.Validate if the designated constraints aren't met.
func (SubmitFeedbackResponseValidationError) Cause ¶
func (e SubmitFeedbackResponseValidationError) Cause() error
Cause function returns cause value.
func (SubmitFeedbackResponseValidationError) Error ¶
func (e SubmitFeedbackResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SubmitFeedbackResponseValidationError) ErrorName ¶
func (e SubmitFeedbackResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SubmitFeedbackResponseValidationError) Field ¶
func (e SubmitFeedbackResponseValidationError) Field() string
Field function returns field value.
func (SubmitFeedbackResponseValidationError) Key ¶
func (e SubmitFeedbackResponseValidationError) Key() bool
Key function returns key value.
func (SubmitFeedbackResponseValidationError) Reason ¶
func (e SubmitFeedbackResponseValidationError) Reason() string
Reason function returns reason value.
type Survey ¶
type Survey struct { // the prompt for the rating options Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"` // the prompt for the freeform feedback FreeformPrompt string `protobuf:"bytes,2,opt,name=freeform_prompt,json=freeformPrompt,proto3" json:"freeform_prompt,omitempty"` // the options to show to the user (i.e. bad/ok/great) for the corresponding rating scale RatingLabels []*RatingLabel `protobuf:"bytes,3,rep,name=rating_labels,json=ratingLabels,proto3" json:"rating_labels,omitempty"` // contains filtered or unexported fields }
func (*Survey) Descriptor
deprecated
func (*Survey) GetFreeformPrompt ¶
func (*Survey) GetRatingLabels ¶
func (x *Survey) GetRatingLabels() []*RatingLabel
func (*Survey) ProtoMessage ¶
func (*Survey) ProtoMessage()
func (*Survey) ProtoReflect ¶
func (x *Survey) ProtoReflect() protoreflect.Message
func (*Survey) Validate ¶
Validate checks the field values on Survey with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Survey) ValidateAll ¶
ValidateAll checks the field values on Survey with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SurveyMultiError, or nil if none found.
type SurveyMultiError ¶
type SurveyMultiError []error
SurveyMultiError is an error wrapping multiple validation errors returned by Survey.ValidateAll() if the designated constraints aren't met.
func (SurveyMultiError) AllErrors ¶
func (m SurveyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SurveyMultiError) Error ¶
func (m SurveyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SurveyValidationError ¶
type SurveyValidationError struct {
// contains filtered or unexported fields
}
SurveyValidationError is the validation error returned by Survey.Validate if the designated constraints aren't met.
func (SurveyValidationError) Cause ¶
func (e SurveyValidationError) Cause() error
Cause function returns cause value.
func (SurveyValidationError) Error ¶
func (e SurveyValidationError) Error() string
Error satisfies the builtin error interface
func (SurveyValidationError) ErrorName ¶
func (e SurveyValidationError) ErrorName() string
ErrorName returns error name.
func (SurveyValidationError) Field ¶
func (e SurveyValidationError) Field() string
Field function returns field value.
func (SurveyValidationError) Key ¶
func (e SurveyValidationError) Key() bool
Key function returns key value.
func (SurveyValidationError) Reason ¶
func (e SurveyValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFeedbackAPIServer ¶
type UnimplementedFeedbackAPIServer struct { }
UnimplementedFeedbackAPIServer should be embedded to have forward compatible implementations.
func (UnimplementedFeedbackAPIServer) GetSurveys ¶
func (UnimplementedFeedbackAPIServer) GetSurveys(context.Context, *GetSurveysRequest) (*GetSurveysResponse, error)
func (UnimplementedFeedbackAPIServer) SubmitFeedback ¶
func (UnimplementedFeedbackAPIServer) SubmitFeedback(context.Context, *SubmitFeedbackRequest) (*SubmitFeedbackResponse, error)
type UnsafeFeedbackAPIServer ¶
type UnsafeFeedbackAPIServer interface {
// contains filtered or unexported methods
}
UnsafeFeedbackAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FeedbackAPIServer will result in compilation errors.