Documentation ¶
Index ¶
- Variables
- func SendReport(userConfig common.UserConfig, issueType int, description string, ...) (err error)
- type Attachment
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAppVersion() string
- func (x *Request) GetAttachments() []*Request_Attachment
- func (x *Request) GetCountryCode() string
- func (x *Request) GetDescription() string
- func (x *Request) GetDevice() string
- func (x *Request) GetDeviceId() string
- func (x *Request) GetLanguage() string
- func (x *Request) GetModel() string
- func (x *Request) GetOsVersion() string
- func (x *Request) GetPlatform() string
- func (x *Request) GetProToken() string
- func (x *Request) GetSubscriptionLevel() string
- func (x *Request) GetType() Request_ISSUE_TYPE
- func (x *Request) GetUserEmail() string
- func (x *Request) GetUserId() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Request_Attachment
- func (*Request_Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Request_Attachment) GetContent() []byte
- func (x *Request_Attachment) GetName() string
- func (x *Request_Attachment) GetType() string
- func (*Request_Attachment) ProtoMessage()
- func (x *Request_Attachment) ProtoReflect() protoreflect.Message
- func (x *Request_Attachment) Reset()
- func (x *Request_Attachment) String() string
- type Request_ISSUE_TYPE
- func (Request_ISSUE_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x Request_ISSUE_TYPE) Enum() *Request_ISSUE_TYPE
- func (Request_ISSUE_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x Request_ISSUE_TYPE) Number() protoreflect.EnumNumber
- func (x Request_ISSUE_TYPE) String() string
- func (Request_ISSUE_TYPE) Type() protoreflect.EnumType
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Request_ISSUE_TYPE_name = map[int32]string{ 0: "PAYMENT_FAIL", 1: "CANNOT_LOGIN", 2: "ALWAYS_SPINNING", 3: "NO_ACCESS", 4: "SLOW", 5: "CANNOT_LINK_DEVICE", 6: "CRASHES", 7: "CHAT_NOT_WORKING", 8: "DISCOVER_NOT_WORKING", 9: "OTHER", } Request_ISSUE_TYPE_value = map[string]int32{ "PAYMENT_FAIL": 0, "CANNOT_LOGIN": 1, "ALWAYS_SPINNING": 2, "NO_ACCESS": 3, "SLOW": 4, "CANNOT_LINK_DEVICE": 5, "CRASHES": 6, "CHAT_NOT_WORKING": 7, "DISCOVER_NOT_WORKING": 8, "OTHER": 9, } )
Enum value maps for Request_ISSUE_TYPE.
View Source
var File_types_proto protoreflect.FileDescriptor
Functions ¶
func SendReport ¶
func SendReport( userConfig common.UserConfig, issueType int, description string, subscriptionLevel string, userEmail string, appVersion string, device string, model string, osVersion string, attachments []*Attachment, ) (err error)
Sends an issue report to lantern-cloud/issue, which is then forwarded to ticket system via API
Types ¶
type Attachment ¶
type Request ¶
type Request struct { Type Request_ISSUE_TYPE `protobuf:"varint,1,opt,name=type,proto3,enum=issue.Request_ISSUE_TYPE" json:"type,omitempty"` CountryCode string `protobuf:"bytes,2,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` AppVersion string `protobuf:"bytes,3,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` SubscriptionLevel string `protobuf:"bytes,4,opt,name=subscription_level,json=subscriptionLevel,proto3" json:"subscription_level,omitempty"` Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` UserEmail string `protobuf:"bytes,7,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"` DeviceId string `protobuf:"bytes,8,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` UserId string `protobuf:"bytes,9,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ProToken string `protobuf:"bytes,10,opt,name=pro_token,json=proToken,proto3" json:"pro_token,omitempty"` Device string `protobuf:"bytes,11,opt,name=device,proto3" json:"device,omitempty"` Model string `protobuf:"bytes,12,opt,name=model,proto3" json:"model,omitempty"` OsVersion string `protobuf:"bytes,13,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` Language string `protobuf:"bytes,14,opt,name=language,proto3" json:"language,omitempty"` Attachments []*Request_Attachment `protobuf:"bytes,15,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetAppVersion ¶
func (*Request) GetAttachments ¶
func (x *Request) GetAttachments() []*Request_Attachment
func (*Request) GetCountryCode ¶
func (*Request) GetDescription ¶
func (*Request) GetDeviceId ¶
func (*Request) GetLanguage ¶
func (*Request) GetOsVersion ¶
func (*Request) GetPlatform ¶
func (*Request) GetProToken ¶
func (*Request) GetSubscriptionLevel ¶
func (*Request) GetType ¶
func (x *Request) GetType() Request_ISSUE_TYPE
func (*Request) GetUserEmail ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Request_Attachment ¶
type Request_Attachment struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Request_Attachment) Descriptor
deprecated
func (*Request_Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Request_Attachment.ProtoReflect.Descriptor instead.
func (*Request_Attachment) GetContent ¶
func (x *Request_Attachment) GetContent() []byte
func (*Request_Attachment) GetName ¶
func (x *Request_Attachment) GetName() string
func (*Request_Attachment) GetType ¶
func (x *Request_Attachment) GetType() string
func (*Request_Attachment) ProtoMessage ¶
func (*Request_Attachment) ProtoMessage()
func (*Request_Attachment) ProtoReflect ¶
func (x *Request_Attachment) ProtoReflect() protoreflect.Message
func (*Request_Attachment) Reset ¶
func (x *Request_Attachment) Reset()
func (*Request_Attachment) String ¶
func (x *Request_Attachment) String() string
type Request_ISSUE_TYPE ¶
type Request_ISSUE_TYPE int32
const ( Request_PAYMENT_FAIL Request_ISSUE_TYPE = 0 Request_CANNOT_LOGIN Request_ISSUE_TYPE = 1 Request_ALWAYS_SPINNING Request_ISSUE_TYPE = 2 Request_NO_ACCESS Request_ISSUE_TYPE = 3 Request_SLOW Request_ISSUE_TYPE = 4 Request_CANNOT_LINK_DEVICE Request_ISSUE_TYPE = 5 Request_CRASHES Request_ISSUE_TYPE = 6 Request_CHAT_NOT_WORKING Request_ISSUE_TYPE = 7 Request_DISCOVER_NOT_WORKING Request_ISSUE_TYPE = 8 Request_OTHER Request_ISSUE_TYPE = 9 )
func (Request_ISSUE_TYPE) Descriptor ¶
func (Request_ISSUE_TYPE) Descriptor() protoreflect.EnumDescriptor
func (Request_ISSUE_TYPE) Enum ¶
func (x Request_ISSUE_TYPE) Enum() *Request_ISSUE_TYPE
func (Request_ISSUE_TYPE) EnumDescriptor
deprecated
func (Request_ISSUE_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use Request_ISSUE_TYPE.Descriptor instead.
func (Request_ISSUE_TYPE) Number ¶
func (x Request_ISSUE_TYPE) Number() protoreflect.EnumNumber
func (Request_ISSUE_TYPE) String ¶
func (x Request_ISSUE_TYPE) String() string
func (Request_ISSUE_TYPE) Type ¶
func (Request_ISSUE_TYPE) Type() protoreflect.EnumType
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.