issue

package
v7.6.74 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 16 Imported by: 3

Documentation

Index

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 Attachment struct {
	Name string
	Data []byte
}

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAppVersion

func (x *Request) GetAppVersion() string

func (*Request) GetAttachments

func (x *Request) GetAttachments() []*Request_Attachment

func (*Request) GetCountryCode

func (x *Request) GetCountryCode() string

func (*Request) GetDescription

func (x *Request) GetDescription() string

func (*Request) GetDevice

func (x *Request) GetDevice() string

func (*Request) GetDeviceId

func (x *Request) GetDeviceId() string

func (*Request) GetLanguage

func (x *Request) GetLanguage() string

func (*Request) GetModel

func (x *Request) GetModel() string

func (*Request) GetOsVersion

func (x *Request) GetOsVersion() string

func (*Request) GetPlatform

func (x *Request) GetPlatform() string

func (*Request) GetProToken

func (x *Request) GetProToken() string

func (*Request) GetSubscriptionLevel

func (x *Request) GetSubscriptionLevel() string

func (*Request) GetType

func (x *Request) GetType() Request_ISSUE_TYPE

func (*Request) GetUserEmail

func (x *Request) GetUserEmail() string

func (*Request) GetUserId

func (x *Request) GetUserId() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

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 (Request_ISSUE_TYPE) String

func (x Request_ISSUE_TYPE) String() string

func (Request_ISSUE_TYPE) Type

type Response

type Response struct {
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Jump to

Keyboard shortcuts

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