feedbackv1

package
v0.0.0-...-d96e350 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package feedbackv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	FeedbackAPI_GetSurveys_FullMethodName     = "/clutch.feedback.v1.FeedbackAPI/GetSurveys"
	FeedbackAPI_SubmitFeedback_FullMethodName = "/clutch.feedback.v1.FeedbackAPI/SubmitFeedback"
)

Variables

View Source
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.

View Source
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.

View Source
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)

View Source
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) 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

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) Descriptor() ([]byte, []int)

Deprecated: Use Feedback.ProtoReflect.Descriptor instead.

func (*Feedback) GetFeedbackType

func (x *Feedback) GetFeedbackType() string

func (*Feedback) GetFreeformResponse

func (x *Feedback) GetFreeformResponse() string

func (*Feedback) GetRatingLabel

func (x *Feedback) GetRatingLabel() string

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) Reset

func (x *Feedback) Reset()

func (*Feedback) String

func (x *Feedback) String() string

func (*Feedback) Validate

func (m *Feedback) Validate() error

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

func (m *Feedback) ValidateAll() error

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.

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

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

Cause function returns cause value.

func (FeedbackMetadataValidationError) Error

Error satisfies the builtin error interface

func (FeedbackMetadataValidationError) ErrorName

ErrorName returns error name.

func (FeedbackMetadataValidationError) Field

Field function returns field value.

func (FeedbackMetadataValidationError) Key

Key function returns key value.

func (FeedbackMetadataValidationError) Reason

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

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

Cause function returns cause value.

func (GetSurveysRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSurveysRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSurveysRequestValidationError) Field

Field function returns field value.

func (GetSurveysRequestValidationError) Key

Key function returns key value.

func (GetSurveysRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetSurveysResponseValidationError) Error

Error satisfies the builtin error interface

func (GetSurveysResponseValidationError) ErrorName

ErrorName returns error name.

func (GetSurveysResponseValidationError) Field

Field function returns field value.

func (GetSurveysResponseValidationError) Key

Key function returns key value.

func (GetSurveysResponseValidationError) Reason

Reason function returns reason value.

type Origin

type Origin int32
const (
	// currently these are the supported placements for feedback
	Origin_ORIGIN_UNSPECIFIED Origin = 0
	Origin_HEADER             Origin = 1
	Origin_WIZARD             Origin = 2
)

func (Origin) Descriptor

func (Origin) Descriptor() protoreflect.EnumDescriptor

func (Origin) Enum

func (x Origin) Enum() *Origin

func (Origin) EnumDescriptor deprecated

func (Origin) EnumDescriptor() ([]byte, []int)

Deprecated: Use Origin.Descriptor instead.

func (Origin) Number

func (x Origin) Number() protoreflect.EnumNumber

func (Origin) String

func (x Origin) String() string

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

Cause function returns cause value.

func (RatingLabelValidationError) Error

Error satisfies the builtin error interface

func (RatingLabelValidationError) ErrorName

func (e RatingLabelValidationError) ErrorName() string

ErrorName returns error name.

func (RatingLabelValidationError) Field

Field function returns field value.

func (RatingLabelValidationError) Key

Key function returns key value.

func (RatingLabelValidationError) Reason

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

Cause function returns cause value.

func (RatingScaleValidationError) Error

Error satisfies the builtin error interface

func (RatingScaleValidationError) ErrorName

func (e RatingScaleValidationError) ErrorName() string

ErrorName returns error name.

func (RatingScaleValidationError) Field

Field function returns field value.

func (RatingScaleValidationError) Key

Key function returns key value.

func (RatingScaleValidationError) Reason

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

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

Cause function returns cause value.

func (SubmitFeedbackRequestValidationError) Error

Error satisfies the builtin error interface

func (SubmitFeedbackRequestValidationError) ErrorName

ErrorName returns error name.

func (SubmitFeedbackRequestValidationError) Field

Field function returns field value.

func (SubmitFeedbackRequestValidationError) Key

Key function returns key value.

func (SubmitFeedbackRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SubmitFeedbackResponseValidationError) Error

Error satisfies the builtin error interface

func (SubmitFeedbackResponseValidationError) ErrorName

ErrorName returns error name.

func (SubmitFeedbackResponseValidationError) Field

Field function returns field value.

func (SubmitFeedbackResponseValidationError) Key

Key function returns key value.

func (SubmitFeedbackResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Survey.ProtoReflect.Descriptor instead.

func (*Survey) GetFreeformPrompt

func (x *Survey) GetFreeformPrompt() string

func (*Survey) GetPrompt

func (x *Survey) GetPrompt() string

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) Reset

func (x *Survey) Reset()

func (*Survey) String

func (x *Survey) String() string

func (*Survey) Validate

func (m *Survey) Validate() error

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

func (m *Survey) ValidateAll() error

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) SubmitFeedback

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL