quest

package
v0.0.0-...-418b934 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package quest is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthQuest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var QuestType_name = map[int32]string{
	0: "OrderAtBusiness",
	1: "OrderTotal",
	3: "AmountOfOrder",
	4: "OrderSpecificProduct",
	5: "ReferFrid",
}
View Source
var QuestType_value = map[string]int32{
	"OrderAtBusiness":      0,
	"OrderTotal":           1,
	"AmountOfOrder":        3,
	"OrderSpecificProduct": 4,
	"ReferFrid":            5,
}

Functions

func RegisterQuestServiceHandler

func RegisterQuestServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQuestServiceHandler registers the http handlers for service QuestService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQuestServiceHandlerClient

func RegisterQuestServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QuestServiceClient) error

RegisterQuestServiceHandlerClient registers the http handlers for service QuestService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QuestServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QuestServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QuestServiceClient" to call the correct interceptors.

func RegisterQuestServiceHandlerFromEndpoint

func RegisterQuestServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQuestServiceHandlerFromEndpoint is same as RegisterQuestServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQuestServiceHandlerServer

func RegisterQuestServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QuestServiceServer) error

RegisterQuestServiceHandlerServer registers the http handlers for service QuestService to "mux". UnaryRPC :call QuestServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterQuestServiceServer

func RegisterQuestServiceServer(s *grpc.Server, srv QuestServiceServer)

Types

type BoolResponse

type BoolResponse struct {
	IsSuccess            bool     `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BoolResponse) Descriptor

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

func (*BoolResponse) GetIsSuccess

func (m *BoolResponse) GetIsSuccess() bool

func (*BoolResponse) Marshal

func (m *BoolResponse) Marshal() (dAtA []byte, err error)

func (*BoolResponse) MarshalTo

func (m *BoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*BoolResponse) MarshalToSizedBuffer

func (m *BoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BoolResponse) ProtoMessage

func (*BoolResponse) ProtoMessage()

func (*BoolResponse) Reset

func (m *BoolResponse) Reset()

func (*BoolResponse) Size

func (m *BoolResponse) Size() (n int)

func (*BoolResponse) String

func (m *BoolResponse) String() string

func (*BoolResponse) Unmarshal

func (m *BoolResponse) Unmarshal(dAtA []byte) error

func (*BoolResponse) Validate

func (this *BoolResponse) Validate() error

func (*BoolResponse) XXX_DiscardUnknown

func (m *BoolResponse) XXX_DiscardUnknown()

func (*BoolResponse) XXX_Marshal

func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoolResponse) XXX_Merge

func (m *BoolResponse) XXX_Merge(src proto.Message)

func (*BoolResponse) XXX_MessageName

func (*BoolResponse) XXX_MessageName() string

func (*BoolResponse) XXX_Size

func (m *BoolResponse) XXX_Size() int

func (*BoolResponse) XXX_Unmarshal

func (m *BoolResponse) XXX_Unmarshal(b []byte) error

type CreateQuestProgressRequest

type CreateQuestProgressRequest struct {
	EntityID             string   `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	QuestID              string   `protobuf:"bytes,2,opt,name=QuestID,proto3" json:"QuestID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateQuestProgressRequest) Descriptor

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

func (*CreateQuestProgressRequest) GetEntityID

func (m *CreateQuestProgressRequest) GetEntityID() string

func (*CreateQuestProgressRequest) GetQuestID

func (m *CreateQuestProgressRequest) GetQuestID() string

func (*CreateQuestProgressRequest) Marshal

func (m *CreateQuestProgressRequest) Marshal() (dAtA []byte, err error)

func (*CreateQuestProgressRequest) MarshalTo

func (m *CreateQuestProgressRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateQuestProgressRequest) MarshalToSizedBuffer

func (m *CreateQuestProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateQuestProgressRequest) ProtoMessage

func (*CreateQuestProgressRequest) ProtoMessage()

func (*CreateQuestProgressRequest) Reset

func (m *CreateQuestProgressRequest) Reset()

func (*CreateQuestProgressRequest) Size

func (m *CreateQuestProgressRequest) Size() (n int)

func (*CreateQuestProgressRequest) String

func (m *CreateQuestProgressRequest) String() string

func (*CreateQuestProgressRequest) Unmarshal

func (m *CreateQuestProgressRequest) Unmarshal(dAtA []byte) error

func (*CreateQuestProgressRequest) Validate

func (this *CreateQuestProgressRequest) Validate() error

func (*CreateQuestProgressRequest) XXX_DiscardUnknown

func (m *CreateQuestProgressRequest) XXX_DiscardUnknown()

func (*CreateQuestProgressRequest) XXX_Marshal

func (m *CreateQuestProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateQuestProgressRequest) XXX_Merge

func (m *CreateQuestProgressRequest) XXX_Merge(src proto.Message)

func (*CreateQuestProgressRequest) XXX_MessageName

func (*CreateQuestProgressRequest) XXX_MessageName() string

func (*CreateQuestProgressRequest) XXX_Size

func (m *CreateQuestProgressRequest) XXX_Size() int

func (*CreateQuestProgressRequest) XXX_Unmarshal

func (m *CreateQuestProgressRequest) XXX_Unmarshal(b []byte) error

type CreateQuestRequest

type CreateQuestRequest struct {
	EntityID                 string           `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	Type                     QuestType        `protobuf:"varint,2,opt,name=Type,proto3,enum=quest.QuestType" json:"Type,omitempty"`
	Threshold                float32          `protobuf:"fixed32,3,opt,name=Threshold,proto3" json:"Threshold,omitempty"`
	RewardPoints             uint64           `protobuf:"varint,4,opt,name=RewardPoints,proto3" json:"RewardPoints,omitempty"`
	Description              string           `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	BannerImageURL           string           `protobuf:"bytes,6,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"`
	AmountOfCompletionPerDay uint32           `protobuf:"varint,7,opt,name=AmountOfCompletionPerDay,proto3" json:"AmountOfCompletionPerDay,omitempty"`
	BusinessID               string           `protobuf:"bytes,8,opt,name=BusinessID,proto3" json:"BusinessID,omitempty"`
	UserID                   string           `protobuf:"bytes,9,opt,name=UserID,proto3" json:"UserID,omitempty"`
	ActiveFrom               *types.Timestamp `protobuf:"bytes,21,opt,name=ActiveFrom,proto3" json:"ActiveFrom,omitempty"`
	ActiveTo                 *types.Timestamp `protobuf:"bytes,22,opt,name=ActiveTo,proto3" json:"ActiveTo,omitempty"`
	IsActive                 bool             `protobuf:"varint,51,opt,name=IsActive,proto3" json:"IsActive,omitempty"`
	IsOncePerEntity          bool             `protobuf:"varint,52,opt,name=IsOncePerEntity,proto3" json:"IsOncePerEntity,omitempty"`
	IsBusinessQuest          bool             `protobuf:"varint,53,opt,name=IsBusinessQuest,proto3" json:"IsBusinessQuest,omitempty"`
	IsBusinessSpecific       bool             `protobuf:"varint,54,opt,name=IsBusinessSpecific,proto3" json:"IsBusinessSpecific,omitempty"`
	IsUserSpecific           bool             `protobuf:"varint,55,opt,name=IsUserSpecific,proto3" json:"IsUserSpecific,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}         `json:"-"`
	XXX_unrecognized         []byte           `json:"-"`
	XXX_sizecache            int32            `json:"-"`
}

func (*CreateQuestRequest) Descriptor

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

func (*CreateQuestRequest) GetActiveFrom

func (m *CreateQuestRequest) GetActiveFrom() *types.Timestamp

func (*CreateQuestRequest) GetActiveTo

func (m *CreateQuestRequest) GetActiveTo() *types.Timestamp

func (*CreateQuestRequest) GetAmountOfCompletionPerDay

func (m *CreateQuestRequest) GetAmountOfCompletionPerDay() uint32

func (*CreateQuestRequest) GetBannerImageURL

func (m *CreateQuestRequest) GetBannerImageURL() string

func (*CreateQuestRequest) GetBusinessID

func (m *CreateQuestRequest) GetBusinessID() string

func (*CreateQuestRequest) GetDescription

func (m *CreateQuestRequest) GetDescription() string

func (*CreateQuestRequest) GetEntityID

func (m *CreateQuestRequest) GetEntityID() string

func (*CreateQuestRequest) GetIsActive

func (m *CreateQuestRequest) GetIsActive() bool

func (*CreateQuestRequest) GetIsBusinessQuest

func (m *CreateQuestRequest) GetIsBusinessQuest() bool

func (*CreateQuestRequest) GetIsBusinessSpecific

func (m *CreateQuestRequest) GetIsBusinessSpecific() bool

func (*CreateQuestRequest) GetIsOncePerEntity

func (m *CreateQuestRequest) GetIsOncePerEntity() bool

func (*CreateQuestRequest) GetIsUserSpecific

func (m *CreateQuestRequest) GetIsUserSpecific() bool

func (*CreateQuestRequest) GetRewardPoints

func (m *CreateQuestRequest) GetRewardPoints() uint64

func (*CreateQuestRequest) GetThreshold

func (m *CreateQuestRequest) GetThreshold() float32

func (*CreateQuestRequest) GetType

func (m *CreateQuestRequest) GetType() QuestType

func (*CreateQuestRequest) GetUserID

func (m *CreateQuestRequest) GetUserID() string

func (*CreateQuestRequest) Marshal

func (m *CreateQuestRequest) Marshal() (dAtA []byte, err error)

func (*CreateQuestRequest) MarshalTo

func (m *CreateQuestRequest) MarshalTo(dAtA []byte) (int, error)

func (*CreateQuestRequest) MarshalToSizedBuffer

func (m *CreateQuestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateQuestRequest) ProtoMessage

func (*CreateQuestRequest) ProtoMessage()

func (*CreateQuestRequest) Reset

func (m *CreateQuestRequest) Reset()

func (*CreateQuestRequest) Size

func (m *CreateQuestRequest) Size() (n int)

func (*CreateQuestRequest) String

func (m *CreateQuestRequest) String() string

func (*CreateQuestRequest) Unmarshal

func (m *CreateQuestRequest) Unmarshal(dAtA []byte) error

func (*CreateQuestRequest) Validate

func (this *CreateQuestRequest) Validate() error

func (*CreateQuestRequest) XXX_DiscardUnknown

func (m *CreateQuestRequest) XXX_DiscardUnknown()

func (*CreateQuestRequest) XXX_Marshal

func (m *CreateQuestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateQuestRequest) XXX_Merge

func (m *CreateQuestRequest) XXX_Merge(src proto.Message)

func (*CreateQuestRequest) XXX_MessageName

func (*CreateQuestRequest) XXX_MessageName() string

func (*CreateQuestRequest) XXX_Size

func (m *CreateQuestRequest) XXX_Size() int

func (*CreateQuestRequest) XXX_Unmarshal

func (m *CreateQuestRequest) XXX_Unmarshal(b []byte) error

type DeleteQuestByIDRequest

type DeleteQuestByIDRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteQuestByIDRequest) Descriptor

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

func (*DeleteQuestByIDRequest) GetID

func (m *DeleteQuestByIDRequest) GetID() string

func (*DeleteQuestByIDRequest) Marshal

func (m *DeleteQuestByIDRequest) Marshal() (dAtA []byte, err error)

func (*DeleteQuestByIDRequest) MarshalTo

func (m *DeleteQuestByIDRequest) MarshalTo(dAtA []byte) (int, error)

func (*DeleteQuestByIDRequest) MarshalToSizedBuffer

func (m *DeleteQuestByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteQuestByIDRequest) ProtoMessage

func (*DeleteQuestByIDRequest) ProtoMessage()

func (*DeleteQuestByIDRequest) Reset

func (m *DeleteQuestByIDRequest) Reset()

func (*DeleteQuestByIDRequest) Size

func (m *DeleteQuestByIDRequest) Size() (n int)

func (*DeleteQuestByIDRequest) String

func (m *DeleteQuestByIDRequest) String() string

func (*DeleteQuestByIDRequest) Unmarshal

func (m *DeleteQuestByIDRequest) Unmarshal(dAtA []byte) error

func (*DeleteQuestByIDRequest) Validate

func (this *DeleteQuestByIDRequest) Validate() error

func (*DeleteQuestByIDRequest) XXX_DiscardUnknown

func (m *DeleteQuestByIDRequest) XXX_DiscardUnknown()

func (*DeleteQuestByIDRequest) XXX_Marshal

func (m *DeleteQuestByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteQuestByIDRequest) XXX_Merge

func (m *DeleteQuestByIDRequest) XXX_Merge(src proto.Message)

func (*DeleteQuestByIDRequest) XXX_MessageName

func (*DeleteQuestByIDRequest) XXX_MessageName() string

func (*DeleteQuestByIDRequest) XXX_Size

func (m *DeleteQuestByIDRequest) XXX_Size() int

func (*DeleteQuestByIDRequest) XXX_Unmarshal

func (m *DeleteQuestByIDRequest) XXX_Unmarshal(b []byte) error

type GetQuestInProgressByIDRequest

type GetQuestInProgressByIDRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetQuestInProgressByIDRequest) Descriptor

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

func (*GetQuestInProgressByIDRequest) GetID

func (*GetQuestInProgressByIDRequest) Marshal

func (m *GetQuestInProgressByIDRequest) Marshal() (dAtA []byte, err error)

func (*GetQuestInProgressByIDRequest) MarshalTo

func (m *GetQuestInProgressByIDRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetQuestInProgressByIDRequest) MarshalToSizedBuffer

func (m *GetQuestInProgressByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetQuestInProgressByIDRequest) ProtoMessage

func (*GetQuestInProgressByIDRequest) ProtoMessage()

func (*GetQuestInProgressByIDRequest) Reset

func (m *GetQuestInProgressByIDRequest) Reset()

func (*GetQuestInProgressByIDRequest) Size

func (m *GetQuestInProgressByIDRequest) Size() (n int)

func (*GetQuestInProgressByIDRequest) String

func (*GetQuestInProgressByIDRequest) Unmarshal

func (m *GetQuestInProgressByIDRequest) Unmarshal(dAtA []byte) error

func (*GetQuestInProgressByIDRequest) Validate

func (this *GetQuestInProgressByIDRequest) Validate() error

func (*GetQuestInProgressByIDRequest) XXX_DiscardUnknown

func (m *GetQuestInProgressByIDRequest) XXX_DiscardUnknown()

func (*GetQuestInProgressByIDRequest) XXX_Marshal

func (m *GetQuestInProgressByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetQuestInProgressByIDRequest) XXX_Merge

func (m *GetQuestInProgressByIDRequest) XXX_Merge(src proto.Message)

func (*GetQuestInProgressByIDRequest) XXX_MessageName

func (*GetQuestInProgressByIDRequest) XXX_MessageName() string

func (*GetQuestInProgressByIDRequest) XXX_Size

func (m *GetQuestInProgressByIDRequest) XXX_Size() int

func (*GetQuestInProgressByIDRequest) XXX_Unmarshal

func (m *GetQuestInProgressByIDRequest) XXX_Unmarshal(b []byte) error

type GetQuestsByEntityRequest

type GetQuestsByEntityRequest struct {
	EntityID             string   `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetQuestsByEntityRequest) Descriptor

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

func (*GetQuestsByEntityRequest) GetEntityID

func (m *GetQuestsByEntityRequest) GetEntityID() string

func (*GetQuestsByEntityRequest) Marshal

func (m *GetQuestsByEntityRequest) Marshal() (dAtA []byte, err error)

func (*GetQuestsByEntityRequest) MarshalTo

func (m *GetQuestsByEntityRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetQuestsByEntityRequest) MarshalToSizedBuffer

func (m *GetQuestsByEntityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetQuestsByEntityRequest) ProtoMessage

func (*GetQuestsByEntityRequest) ProtoMessage()

func (*GetQuestsByEntityRequest) Reset

func (m *GetQuestsByEntityRequest) Reset()

func (*GetQuestsByEntityRequest) Size

func (m *GetQuestsByEntityRequest) Size() (n int)

func (*GetQuestsByEntityRequest) String

func (m *GetQuestsByEntityRequest) String() string

func (*GetQuestsByEntityRequest) Unmarshal

func (m *GetQuestsByEntityRequest) Unmarshal(dAtA []byte) error

func (*GetQuestsByEntityRequest) Validate

func (this *GetQuestsByEntityRequest) Validate() error

func (*GetQuestsByEntityRequest) XXX_DiscardUnknown

func (m *GetQuestsByEntityRequest) XXX_DiscardUnknown()

func (*GetQuestsByEntityRequest) XXX_Marshal

func (m *GetQuestsByEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetQuestsByEntityRequest) XXX_Merge

func (m *GetQuestsByEntityRequest) XXX_Merge(src proto.Message)

func (*GetQuestsByEntityRequest) XXX_MessageName

func (*GetQuestsByEntityRequest) XXX_MessageName() string

func (*GetQuestsByEntityRequest) XXX_Size

func (m *GetQuestsByEntityRequest) XXX_Size() int

func (*GetQuestsByEntityRequest) XXX_Unmarshal

func (m *GetQuestsByEntityRequest) XXX_Unmarshal(b []byte) error

type GetQuestsByIDsRequest

type GetQuestsByIDsRequest struct {
	ID                   []string `protobuf:"bytes,1,rep,name=ID,proto3" json:"ID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetQuestsByIDsRequest) Descriptor

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

func (*GetQuestsByIDsRequest) GetID

func (m *GetQuestsByIDsRequest) GetID() []string

func (*GetQuestsByIDsRequest) Marshal

func (m *GetQuestsByIDsRequest) Marshal() (dAtA []byte, err error)

func (*GetQuestsByIDsRequest) MarshalTo

func (m *GetQuestsByIDsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetQuestsByIDsRequest) MarshalToSizedBuffer

func (m *GetQuestsByIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetQuestsByIDsRequest) ProtoMessage

func (*GetQuestsByIDsRequest) ProtoMessage()

func (*GetQuestsByIDsRequest) Reset

func (m *GetQuestsByIDsRequest) Reset()

func (*GetQuestsByIDsRequest) Size

func (m *GetQuestsByIDsRequest) Size() (n int)

func (*GetQuestsByIDsRequest) String

func (m *GetQuestsByIDsRequest) String() string

func (*GetQuestsByIDsRequest) Unmarshal

func (m *GetQuestsByIDsRequest) Unmarshal(dAtA []byte) error

func (*GetQuestsByIDsRequest) Validate

func (this *GetQuestsByIDsRequest) Validate() error

func (*GetQuestsByIDsRequest) XXX_DiscardUnknown

func (m *GetQuestsByIDsRequest) XXX_DiscardUnknown()

func (*GetQuestsByIDsRequest) XXX_Marshal

func (m *GetQuestsByIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetQuestsByIDsRequest) XXX_Merge

func (m *GetQuestsByIDsRequest) XXX_Merge(src proto.Message)

func (*GetQuestsByIDsRequest) XXX_MessageName

func (*GetQuestsByIDsRequest) XXX_MessageName() string

func (*GetQuestsByIDsRequest) XXX_Size

func (m *GetQuestsByIDsRequest) XXX_Size() int

func (*GetQuestsByIDsRequest) XXX_Unmarshal

func (m *GetQuestsByIDsRequest) XXX_Unmarshal(b []byte) error

type GetQuestsInProgressesByEntityRequest

type GetQuestsInProgressesByEntityRequest struct {
	EntityID             string   `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetQuestsInProgressesByEntityRequest) Descriptor

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

func (*GetQuestsInProgressesByEntityRequest) GetEntityID

func (*GetQuestsInProgressesByEntityRequest) Marshal

func (m *GetQuestsInProgressesByEntityRequest) Marshal() (dAtA []byte, err error)

func (*GetQuestsInProgressesByEntityRequest) MarshalTo

func (m *GetQuestsInProgressesByEntityRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetQuestsInProgressesByEntityRequest) MarshalToSizedBuffer

func (m *GetQuestsInProgressesByEntityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetQuestsInProgressesByEntityRequest) ProtoMessage

func (*GetQuestsInProgressesByEntityRequest) ProtoMessage()

func (*GetQuestsInProgressesByEntityRequest) Reset

func (*GetQuestsInProgressesByEntityRequest) Size

func (*GetQuestsInProgressesByEntityRequest) String

func (*GetQuestsInProgressesByEntityRequest) Unmarshal

func (m *GetQuestsInProgressesByEntityRequest) Unmarshal(dAtA []byte) error

func (*GetQuestsInProgressesByEntityRequest) Validate

func (*GetQuestsInProgressesByEntityRequest) XXX_DiscardUnknown

func (m *GetQuestsInProgressesByEntityRequest) XXX_DiscardUnknown()

func (*GetQuestsInProgressesByEntityRequest) XXX_Marshal

func (m *GetQuestsInProgressesByEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetQuestsInProgressesByEntityRequest) XXX_Merge

func (*GetQuestsInProgressesByEntityRequest) XXX_MessageName

func (*GetQuestsInProgressesByEntityRequest) XXX_MessageName() string

func (*GetQuestsInProgressesByEntityRequest) XXX_Size

func (*GetQuestsInProgressesByEntityRequest) XXX_Unmarshal

func (m *GetQuestsInProgressesByEntityRequest) XXX_Unmarshal(b []byte) error

type GetTotalPointsByEntityRequest

type GetTotalPointsByEntityRequest struct {
	EntityID             string   `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTotalPointsByEntityRequest) Descriptor

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

func (*GetTotalPointsByEntityRequest) GetEntityID

func (m *GetTotalPointsByEntityRequest) GetEntityID() string

func (*GetTotalPointsByEntityRequest) Marshal

func (m *GetTotalPointsByEntityRequest) Marshal() (dAtA []byte, err error)

func (*GetTotalPointsByEntityRequest) MarshalTo

func (m *GetTotalPointsByEntityRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetTotalPointsByEntityRequest) MarshalToSizedBuffer

func (m *GetTotalPointsByEntityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTotalPointsByEntityRequest) ProtoMessage

func (*GetTotalPointsByEntityRequest) ProtoMessage()

func (*GetTotalPointsByEntityRequest) Reset

func (m *GetTotalPointsByEntityRequest) Reset()

func (*GetTotalPointsByEntityRequest) Size

func (m *GetTotalPointsByEntityRequest) Size() (n int)

func (*GetTotalPointsByEntityRequest) String

func (*GetTotalPointsByEntityRequest) Unmarshal

func (m *GetTotalPointsByEntityRequest) Unmarshal(dAtA []byte) error

func (*GetTotalPointsByEntityRequest) Validate

func (this *GetTotalPointsByEntityRequest) Validate() error

func (*GetTotalPointsByEntityRequest) XXX_DiscardUnknown

func (m *GetTotalPointsByEntityRequest) XXX_DiscardUnknown()

func (*GetTotalPointsByEntityRequest) XXX_Marshal

func (m *GetTotalPointsByEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTotalPointsByEntityRequest) XXX_Merge

func (m *GetTotalPointsByEntityRequest) XXX_Merge(src proto.Message)

func (*GetTotalPointsByEntityRequest) XXX_MessageName

func (*GetTotalPointsByEntityRequest) XXX_MessageName() string

func (*GetTotalPointsByEntityRequest) XXX_Size

func (m *GetTotalPointsByEntityRequest) XXX_Size() int

func (*GetTotalPointsByEntityRequest) XXX_Unmarshal

func (m *GetTotalPointsByEntityRequest) XXX_Unmarshal(b []byte) error

type PointHistoryDTO

type PointHistoryDTO struct {
	Date                 *types.Timestamp `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"`
	AmountModified       int64            `protobuf:"varint,2,opt,name=AmountModified,proto3" json:"AmountModified,omitempty"`
	ModifyReason         string           `protobuf:"bytes,3,opt,name=ModifyReason,proto3" json:"ModifyReason,omitempty"`
	CompletedQuest       *QuestDTO        `protobuf:"bytes,4,opt,name=CompletedQuest,proto3" json:"CompletedQuest,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*PointHistoryDTO) Descriptor

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

func (*PointHistoryDTO) GetAmountModified

func (m *PointHistoryDTO) GetAmountModified() int64

func (*PointHistoryDTO) GetCompletedQuest

func (m *PointHistoryDTO) GetCompletedQuest() *QuestDTO

func (*PointHistoryDTO) GetDate

func (m *PointHistoryDTO) GetDate() *types.Timestamp

func (*PointHistoryDTO) GetModifyReason

func (m *PointHistoryDTO) GetModifyReason() string

func (*PointHistoryDTO) Marshal

func (m *PointHistoryDTO) Marshal() (dAtA []byte, err error)

func (*PointHistoryDTO) MarshalTo

func (m *PointHistoryDTO) MarshalTo(dAtA []byte) (int, error)

func (*PointHistoryDTO) MarshalToSizedBuffer

func (m *PointHistoryDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PointHistoryDTO) ProtoMessage

func (*PointHistoryDTO) ProtoMessage()

func (*PointHistoryDTO) Reset

func (m *PointHistoryDTO) Reset()

func (*PointHistoryDTO) Size

func (m *PointHistoryDTO) Size() (n int)

func (*PointHistoryDTO) String

func (m *PointHistoryDTO) String() string

func (*PointHistoryDTO) Unmarshal

func (m *PointHistoryDTO) Unmarshal(dAtA []byte) error

func (*PointHistoryDTO) Validate

func (this *PointHistoryDTO) Validate() error

func (*PointHistoryDTO) XXX_DiscardUnknown

func (m *PointHistoryDTO) XXX_DiscardUnknown()

func (*PointHistoryDTO) XXX_Marshal

func (m *PointHistoryDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PointHistoryDTO) XXX_Merge

func (m *PointHistoryDTO) XXX_Merge(src proto.Message)

func (*PointHistoryDTO) XXX_MessageName

func (*PointHistoryDTO) XXX_MessageName() string

func (*PointHistoryDTO) XXX_Size

func (m *PointHistoryDTO) XXX_Size() int

func (*PointHistoryDTO) XXX_Unmarshal

func (m *PointHistoryDTO) XXX_Unmarshal(b []byte) error

type PointsDTO

type PointsDTO struct {
	TotalPoints          int64    `protobuf:"varint,1,opt,name=TotalPoints,proto3" json:"TotalPoints,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PointsDTO) Descriptor

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

func (*PointsDTO) GetTotalPoints

func (m *PointsDTO) GetTotalPoints() int64

func (*PointsDTO) Marshal

func (m *PointsDTO) Marshal() (dAtA []byte, err error)

func (*PointsDTO) MarshalTo

func (m *PointsDTO) MarshalTo(dAtA []byte) (int, error)

func (*PointsDTO) MarshalToSizedBuffer

func (m *PointsDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PointsDTO) ProtoMessage

func (*PointsDTO) ProtoMessage()

func (*PointsDTO) Reset

func (m *PointsDTO) Reset()

func (*PointsDTO) Size

func (m *PointsDTO) Size() (n int)

func (*PointsDTO) String

func (m *PointsDTO) String() string

func (*PointsDTO) Unmarshal

func (m *PointsDTO) Unmarshal(dAtA []byte) error

func (*PointsDTO) Validate

func (this *PointsDTO) Validate() error

func (*PointsDTO) XXX_DiscardUnknown

func (m *PointsDTO) XXX_DiscardUnknown()

func (*PointsDTO) XXX_Marshal

func (m *PointsDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PointsDTO) XXX_Merge

func (m *PointsDTO) XXX_Merge(src proto.Message)

func (*PointsDTO) XXX_MessageName

func (*PointsDTO) XXX_MessageName() string

func (*PointsDTO) XXX_Size

func (m *PointsDTO) XXX_Size() int

func (*PointsDTO) XXX_Unmarshal

func (m *PointsDTO) XXX_Unmarshal(b []byte) error

type QuestDTO

type QuestDTO struct {
	ID                       string           `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Type                     QuestType        `protobuf:"varint,2,opt,name=Type,proto3,enum=quest.QuestType" json:"Type,omitempty"`
	Threshold                float32          `protobuf:"fixed32,3,opt,name=Threshold,proto3" json:"Threshold,omitempty"`
	RewardPoints             uint64           `protobuf:"varint,4,opt,name=RewardPoints,proto3" json:"RewardPoints,omitempty"`
	Description              string           `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	BannerImageURL           string           `protobuf:"bytes,6,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"`
	AmountOfCompletionPerDay uint32           `protobuf:"varint,7,opt,name=AmountOfCompletionPerDay,proto3" json:"AmountOfCompletionPerDay,omitempty"`
	BusinessID               string           `protobuf:"bytes,8,opt,name=BusinessID,proto3" json:"BusinessID,omitempty"`
	UserID                   string           `protobuf:"bytes,9,opt,name=UserID,proto3" json:"UserID,omitempty"`
	ActiveFrom               *types.Timestamp `protobuf:"bytes,21,opt,name=ActiveFrom,proto3" json:"ActiveFrom,omitempty"`
	ActiveTo                 *types.Timestamp `protobuf:"bytes,22,opt,name=ActiveTo,proto3" json:"ActiveTo,omitempty"`
	IsActive                 bool             `protobuf:"varint,51,opt,name=IsActive,proto3" json:"IsActive,omitempty"`
	IsOncePerEntity          bool             `protobuf:"varint,52,opt,name=IsOncePerEntity,proto3" json:"IsOncePerEntity,omitempty"`
	IsBusinessQuest          bool             `protobuf:"varint,53,opt,name=IsBusinessQuest,proto3" json:"IsBusinessQuest,omitempty"`
	IsBusinessSpecific       bool             `protobuf:"varint,54,opt,name=IsBusinessSpecific,proto3" json:"IsBusinessSpecific,omitempty"`
	IsUserSpecific           bool             `protobuf:"varint,55,opt,name=IsUserSpecific,proto3" json:"IsUserSpecific,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}         `json:"-"`
	XXX_unrecognized         []byte           `json:"-"`
	XXX_sizecache            int32            `json:"-"`
}

func (*QuestDTO) Descriptor

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

func (*QuestDTO) GetActiveFrom

func (m *QuestDTO) GetActiveFrom() *types.Timestamp

func (*QuestDTO) GetActiveTo

func (m *QuestDTO) GetActiveTo() *types.Timestamp

func (*QuestDTO) GetAmountOfCompletionPerDay

func (m *QuestDTO) GetAmountOfCompletionPerDay() uint32

func (*QuestDTO) GetBannerImageURL

func (m *QuestDTO) GetBannerImageURL() string

func (*QuestDTO) GetBusinessID

func (m *QuestDTO) GetBusinessID() string

func (*QuestDTO) GetDescription

func (m *QuestDTO) GetDescription() string

func (*QuestDTO) GetID

func (m *QuestDTO) GetID() string

func (*QuestDTO) GetIsActive

func (m *QuestDTO) GetIsActive() bool

func (*QuestDTO) GetIsBusinessQuest

func (m *QuestDTO) GetIsBusinessQuest() bool

func (*QuestDTO) GetIsBusinessSpecific

func (m *QuestDTO) GetIsBusinessSpecific() bool

func (*QuestDTO) GetIsOncePerEntity

func (m *QuestDTO) GetIsOncePerEntity() bool

func (*QuestDTO) GetIsUserSpecific

func (m *QuestDTO) GetIsUserSpecific() bool

func (*QuestDTO) GetRewardPoints

func (m *QuestDTO) GetRewardPoints() uint64

func (*QuestDTO) GetThreshold

func (m *QuestDTO) GetThreshold() float32

func (*QuestDTO) GetType

func (m *QuestDTO) GetType() QuestType

func (*QuestDTO) GetUserID

func (m *QuestDTO) GetUserID() string

func (*QuestDTO) Marshal

func (m *QuestDTO) Marshal() (dAtA []byte, err error)

func (*QuestDTO) MarshalTo

func (m *QuestDTO) MarshalTo(dAtA []byte) (int, error)

func (*QuestDTO) MarshalToSizedBuffer

func (m *QuestDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuestDTO) ProtoMessage

func (*QuestDTO) ProtoMessage()

func (*QuestDTO) Reset

func (m *QuestDTO) Reset()

func (*QuestDTO) Size

func (m *QuestDTO) Size() (n int)

func (*QuestDTO) String

func (m *QuestDTO) String() string

func (*QuestDTO) Unmarshal

func (m *QuestDTO) Unmarshal(dAtA []byte) error

func (*QuestDTO) Validate

func (this *QuestDTO) Validate() error

func (*QuestDTO) XXX_DiscardUnknown

func (m *QuestDTO) XXX_DiscardUnknown()

func (*QuestDTO) XXX_Marshal

func (m *QuestDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuestDTO) XXX_Merge

func (m *QuestDTO) XXX_Merge(src proto.Message)

func (*QuestDTO) XXX_MessageName

func (*QuestDTO) XXX_MessageName() string

func (*QuestDTO) XXX_Size

func (m *QuestDTO) XXX_Size() int

func (*QuestDTO) XXX_Unmarshal

func (m *QuestDTO) XXX_Unmarshal(b []byte) error

type QuestProgressDTO

type QuestProgressDTO struct {
	CurrentProgress      float32   `protobuf:"fixed32,1,opt,name=CurrentProgress,proto3" json:"CurrentProgress,omitempty"`
	IsCancelled          bool      `protobuf:"varint,2,opt,name=IsCancelled,proto3" json:"IsCancelled,omitempty"`
	IsCompleted          bool      `protobuf:"varint,3,opt,name=IsCompleted,proto3" json:"IsCompleted,omitempty"`
	Quest                *QuestDTO `protobuf:"bytes,51,opt,name=Quest,proto3" json:"Quest,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*QuestProgressDTO) Descriptor

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

func (*QuestProgressDTO) GetCurrentProgress

func (m *QuestProgressDTO) GetCurrentProgress() float32

func (*QuestProgressDTO) GetIsCancelled

func (m *QuestProgressDTO) GetIsCancelled() bool

func (*QuestProgressDTO) GetIsCompleted

func (m *QuestProgressDTO) GetIsCompleted() bool

func (*QuestProgressDTO) GetQuest

func (m *QuestProgressDTO) GetQuest() *QuestDTO

func (*QuestProgressDTO) Marshal

func (m *QuestProgressDTO) Marshal() (dAtA []byte, err error)

func (*QuestProgressDTO) MarshalTo

func (m *QuestProgressDTO) MarshalTo(dAtA []byte) (int, error)

func (*QuestProgressDTO) MarshalToSizedBuffer

func (m *QuestProgressDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuestProgressDTO) ProtoMessage

func (*QuestProgressDTO) ProtoMessage()

func (*QuestProgressDTO) Reset

func (m *QuestProgressDTO) Reset()

func (*QuestProgressDTO) Size

func (m *QuestProgressDTO) Size() (n int)

func (*QuestProgressDTO) String

func (m *QuestProgressDTO) String() string

func (*QuestProgressDTO) Unmarshal

func (m *QuestProgressDTO) Unmarshal(dAtA []byte) error

func (*QuestProgressDTO) Validate

func (this *QuestProgressDTO) Validate() error

func (*QuestProgressDTO) XXX_DiscardUnknown

func (m *QuestProgressDTO) XXX_DiscardUnknown()

func (*QuestProgressDTO) XXX_Marshal

func (m *QuestProgressDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuestProgressDTO) XXX_Merge

func (m *QuestProgressDTO) XXX_Merge(src proto.Message)

func (*QuestProgressDTO) XXX_MessageName

func (*QuestProgressDTO) XXX_MessageName() string

func (*QuestProgressDTO) XXX_Size

func (m *QuestProgressDTO) XXX_Size() int

func (*QuestProgressDTO) XXX_Unmarshal

func (m *QuestProgressDTO) XXX_Unmarshal(b []byte) error

type QuestServiceClient

type QuestServiceClient interface {
	CreateQuest(ctx context.Context, in *CreateQuestRequest, opts ...grpc.CallOption) (*QuestDTO, error)
	GetQuestsByIDs(ctx context.Context, in *GetQuestsByIDsRequest, opts ...grpc.CallOption) (*RepeatedQuestDTO, error)
	GetQuestsByEntity(ctx context.Context, in *GetQuestsByEntityRequest, opts ...grpc.CallOption) (*RepeatedQuestDTO, error)
	UpdateQuestByID(ctx context.Context, in *UpdateQuestRequest, opts ...grpc.CallOption) (*QuestDTO, error)
	DeleteQuestByID(ctx context.Context, in *DeleteQuestByIDRequest, opts ...grpc.CallOption) (*BoolResponse, error)
	CreateQuestProgress(ctx context.Context, in *CreateQuestProgressRequest, opts ...grpc.CallOption) (*QuestProgressDTO, error)
	UpdateQuestProgress(ctx context.Context, in *UpdateQuestProgressRequest, opts ...grpc.CallOption) (*QuestProgressDTO, error)
	GetQuestsInProgressesByEntity(ctx context.Context, in *GetQuestsInProgressesByEntityRequest, opts ...grpc.CallOption) (*RepeatedQuestProgressDTO, error)
	GetQuestInProgressByID(ctx context.Context, in *GetQuestInProgressByIDRequest, opts ...grpc.CallOption) (*QuestProgressDTO, error)
	GetTotalPointsByEntity(ctx context.Context, in *GetTotalPointsByEntityRequest, opts ...grpc.CallOption) (*PointsDTO, error)
	UpdatePoints(ctx context.Context, in *UpdatePointsRequest, opts ...grpc.CallOption) (*PointsDTO, error)
}

QuestServiceClient is the client API for QuestService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQuestServiceClient

func NewQuestServiceClient(cc *grpc.ClientConn) QuestServiceClient

type QuestServiceServer

QuestServiceServer is the server API for QuestService service.

type QuestType

type QuestType int32
const (
	QuestType_OrderAtBusiness      QuestType = 0
	QuestType_OrderTotal           QuestType = 1
	QuestType_AmountOfOrder        QuestType = 3
	QuestType_OrderSpecificProduct QuestType = 4
	QuestType_ReferFrid            QuestType = 5
)

func (QuestType) EnumDescriptor

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

func (QuestType) String

func (x QuestType) String() string

type RepeatedPointHistoryDTO

type RepeatedPointHistoryDTO struct {
	Results              []*PointHistoryDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*RepeatedPointHistoryDTO) Descriptor

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

func (*RepeatedPointHistoryDTO) GetResults

func (m *RepeatedPointHistoryDTO) GetResults() []*PointHistoryDTO

func (*RepeatedPointHistoryDTO) Marshal

func (m *RepeatedPointHistoryDTO) Marshal() (dAtA []byte, err error)

func (*RepeatedPointHistoryDTO) MarshalTo

func (m *RepeatedPointHistoryDTO) MarshalTo(dAtA []byte) (int, error)

func (*RepeatedPointHistoryDTO) MarshalToSizedBuffer

func (m *RepeatedPointHistoryDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepeatedPointHistoryDTO) ProtoMessage

func (*RepeatedPointHistoryDTO) ProtoMessage()

func (*RepeatedPointHistoryDTO) Reset

func (m *RepeatedPointHistoryDTO) Reset()

func (*RepeatedPointHistoryDTO) Size

func (m *RepeatedPointHistoryDTO) Size() (n int)

func (*RepeatedPointHistoryDTO) String

func (m *RepeatedPointHistoryDTO) String() string

func (*RepeatedPointHistoryDTO) Unmarshal

func (m *RepeatedPointHistoryDTO) Unmarshal(dAtA []byte) error

func (*RepeatedPointHistoryDTO) Validate

func (this *RepeatedPointHistoryDTO) Validate() error

func (*RepeatedPointHistoryDTO) XXX_DiscardUnknown

func (m *RepeatedPointHistoryDTO) XXX_DiscardUnknown()

func (*RepeatedPointHistoryDTO) XXX_Marshal

func (m *RepeatedPointHistoryDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepeatedPointHistoryDTO) XXX_Merge

func (m *RepeatedPointHistoryDTO) XXX_Merge(src proto.Message)

func (*RepeatedPointHistoryDTO) XXX_MessageName

func (*RepeatedPointHistoryDTO) XXX_MessageName() string

func (*RepeatedPointHistoryDTO) XXX_Size

func (m *RepeatedPointHistoryDTO) XXX_Size() int

func (*RepeatedPointHistoryDTO) XXX_Unmarshal

func (m *RepeatedPointHistoryDTO) XXX_Unmarshal(b []byte) error

type RepeatedQuestDTO

type RepeatedQuestDTO struct {
	Results              []*QuestDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*RepeatedQuestDTO) Descriptor

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

func (*RepeatedQuestDTO) GetResults

func (m *RepeatedQuestDTO) GetResults() []*QuestDTO

func (*RepeatedQuestDTO) Marshal

func (m *RepeatedQuestDTO) Marshal() (dAtA []byte, err error)

func (*RepeatedQuestDTO) MarshalTo

func (m *RepeatedQuestDTO) MarshalTo(dAtA []byte) (int, error)

func (*RepeatedQuestDTO) MarshalToSizedBuffer

func (m *RepeatedQuestDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepeatedQuestDTO) ProtoMessage

func (*RepeatedQuestDTO) ProtoMessage()

func (*RepeatedQuestDTO) Reset

func (m *RepeatedQuestDTO) Reset()

func (*RepeatedQuestDTO) Size

func (m *RepeatedQuestDTO) Size() (n int)

func (*RepeatedQuestDTO) String

func (m *RepeatedQuestDTO) String() string

func (*RepeatedQuestDTO) Unmarshal

func (m *RepeatedQuestDTO) Unmarshal(dAtA []byte) error

func (*RepeatedQuestDTO) Validate

func (this *RepeatedQuestDTO) Validate() error

func (*RepeatedQuestDTO) XXX_DiscardUnknown

func (m *RepeatedQuestDTO) XXX_DiscardUnknown()

func (*RepeatedQuestDTO) XXX_Marshal

func (m *RepeatedQuestDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepeatedQuestDTO) XXX_Merge

func (m *RepeatedQuestDTO) XXX_Merge(src proto.Message)

func (*RepeatedQuestDTO) XXX_MessageName

func (*RepeatedQuestDTO) XXX_MessageName() string

func (*RepeatedQuestDTO) XXX_Size

func (m *RepeatedQuestDTO) XXX_Size() int

func (*RepeatedQuestDTO) XXX_Unmarshal

func (m *RepeatedQuestDTO) XXX_Unmarshal(b []byte) error

type RepeatedQuestProgressDTO

type RepeatedQuestProgressDTO struct {
	Results              []*QuestProgressDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*RepeatedQuestProgressDTO) Descriptor

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

func (*RepeatedQuestProgressDTO) GetResults

func (m *RepeatedQuestProgressDTO) GetResults() []*QuestProgressDTO

func (*RepeatedQuestProgressDTO) Marshal

func (m *RepeatedQuestProgressDTO) Marshal() (dAtA []byte, err error)

func (*RepeatedQuestProgressDTO) MarshalTo

func (m *RepeatedQuestProgressDTO) MarshalTo(dAtA []byte) (int, error)

func (*RepeatedQuestProgressDTO) MarshalToSizedBuffer

func (m *RepeatedQuestProgressDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RepeatedQuestProgressDTO) ProtoMessage

func (*RepeatedQuestProgressDTO) ProtoMessage()

func (*RepeatedQuestProgressDTO) Reset

func (m *RepeatedQuestProgressDTO) Reset()

func (*RepeatedQuestProgressDTO) Size

func (m *RepeatedQuestProgressDTO) Size() (n int)

func (*RepeatedQuestProgressDTO) String

func (m *RepeatedQuestProgressDTO) String() string

func (*RepeatedQuestProgressDTO) Unmarshal

func (m *RepeatedQuestProgressDTO) Unmarshal(dAtA []byte) error

func (*RepeatedQuestProgressDTO) Validate

func (this *RepeatedQuestProgressDTO) Validate() error

func (*RepeatedQuestProgressDTO) XXX_DiscardUnknown

func (m *RepeatedQuestProgressDTO) XXX_DiscardUnknown()

func (*RepeatedQuestProgressDTO) XXX_Marshal

func (m *RepeatedQuestProgressDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepeatedQuestProgressDTO) XXX_Merge

func (m *RepeatedQuestProgressDTO) XXX_Merge(src proto.Message)

func (*RepeatedQuestProgressDTO) XXX_MessageName

func (*RepeatedQuestProgressDTO) XXX_MessageName() string

func (*RepeatedQuestProgressDTO) XXX_Size

func (m *RepeatedQuestProgressDTO) XXX_Size() int

func (*RepeatedQuestProgressDTO) XXX_Unmarshal

func (m *RepeatedQuestProgressDTO) XXX_Unmarshal(b []byte) error

type UnimplementedQuestServiceServer

type UnimplementedQuestServiceServer struct {
}

UnimplementedQuestServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQuestServiceServer) CreateQuest

func (*UnimplementedQuestServiceServer) CreateQuestProgress

func (*UnimplementedQuestServiceServer) DeleteQuestByID

func (*UnimplementedQuestServiceServer) GetQuestInProgressByID

func (*UnimplementedQuestServiceServer) GetQuestsByEntity

func (*UnimplementedQuestServiceServer) GetQuestsByIDs

func (*UnimplementedQuestServiceServer) GetQuestsInProgressesByEntity

func (*UnimplementedQuestServiceServer) GetTotalPointsByEntity

func (*UnimplementedQuestServiceServer) UpdatePoints

func (*UnimplementedQuestServiceServer) UpdateQuestByID

func (*UnimplementedQuestServiceServer) UpdateQuestProgress

type UpdatePointsRequest

type UpdatePointsRequest struct {
	EntityID             string   `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Reason               string   `protobuf:"bytes,3,opt,name=Reason,proto3" json:"Reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePointsRequest) Descriptor

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

func (*UpdatePointsRequest) GetAmount

func (m *UpdatePointsRequest) GetAmount() int64

func (*UpdatePointsRequest) GetEntityID

func (m *UpdatePointsRequest) GetEntityID() string

func (*UpdatePointsRequest) GetReason

func (m *UpdatePointsRequest) GetReason() string

func (*UpdatePointsRequest) Marshal

func (m *UpdatePointsRequest) Marshal() (dAtA []byte, err error)

func (*UpdatePointsRequest) MarshalTo

func (m *UpdatePointsRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdatePointsRequest) MarshalToSizedBuffer

func (m *UpdatePointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdatePointsRequest) ProtoMessage

func (*UpdatePointsRequest) ProtoMessage()

func (*UpdatePointsRequest) Reset

func (m *UpdatePointsRequest) Reset()

func (*UpdatePointsRequest) Size

func (m *UpdatePointsRequest) Size() (n int)

func (*UpdatePointsRequest) String

func (m *UpdatePointsRequest) String() string

func (*UpdatePointsRequest) Unmarshal

func (m *UpdatePointsRequest) Unmarshal(dAtA []byte) error

func (*UpdatePointsRequest) Validate

func (this *UpdatePointsRequest) Validate() error

func (*UpdatePointsRequest) XXX_DiscardUnknown

func (m *UpdatePointsRequest) XXX_DiscardUnknown()

func (*UpdatePointsRequest) XXX_Marshal

func (m *UpdatePointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatePointsRequest) XXX_Merge

func (m *UpdatePointsRequest) XXX_Merge(src proto.Message)

func (*UpdatePointsRequest) XXX_MessageName

func (*UpdatePointsRequest) XXX_MessageName() string

func (*UpdatePointsRequest) XXX_Size

func (m *UpdatePointsRequest) XXX_Size() int

func (*UpdatePointsRequest) XXX_Unmarshal

func (m *UpdatePointsRequest) XXX_Unmarshal(b []byte) error

type UpdateQuestProgressRequest

type UpdateQuestProgressRequest struct {
	ID                   string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	ProgressAmount       float32  `protobuf:"fixed32,2,opt,name=ProgressAmount,proto3" json:"ProgressAmount,omitempty"`
	IsCancelled          bool     `protobuf:"varint,3,opt,name=IsCancelled,proto3" json:"IsCancelled,omitempty"`
	IsCompleted          bool     `protobuf:"varint,4,opt,name=IsCompleted,proto3" json:"IsCompleted,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateQuestProgressRequest) Descriptor

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

func (*UpdateQuestProgressRequest) GetID

func (*UpdateQuestProgressRequest) GetIsCancelled

func (m *UpdateQuestProgressRequest) GetIsCancelled() bool

func (*UpdateQuestProgressRequest) GetIsCompleted

func (m *UpdateQuestProgressRequest) GetIsCompleted() bool

func (*UpdateQuestProgressRequest) GetProgressAmount

func (m *UpdateQuestProgressRequest) GetProgressAmount() float32

func (*UpdateQuestProgressRequest) Marshal

func (m *UpdateQuestProgressRequest) Marshal() (dAtA []byte, err error)

func (*UpdateQuestProgressRequest) MarshalTo

func (m *UpdateQuestProgressRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateQuestProgressRequest) MarshalToSizedBuffer

func (m *UpdateQuestProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateQuestProgressRequest) ProtoMessage

func (*UpdateQuestProgressRequest) ProtoMessage()

func (*UpdateQuestProgressRequest) Reset

func (m *UpdateQuestProgressRequest) Reset()

func (*UpdateQuestProgressRequest) Size

func (m *UpdateQuestProgressRequest) Size() (n int)

func (*UpdateQuestProgressRequest) String

func (m *UpdateQuestProgressRequest) String() string

func (*UpdateQuestProgressRequest) Unmarshal

func (m *UpdateQuestProgressRequest) Unmarshal(dAtA []byte) error

func (*UpdateQuestProgressRequest) Validate

func (this *UpdateQuestProgressRequest) Validate() error

func (*UpdateQuestProgressRequest) XXX_DiscardUnknown

func (m *UpdateQuestProgressRequest) XXX_DiscardUnknown()

func (*UpdateQuestProgressRequest) XXX_Marshal

func (m *UpdateQuestProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateQuestProgressRequest) XXX_Merge

func (m *UpdateQuestProgressRequest) XXX_Merge(src proto.Message)

func (*UpdateQuestProgressRequest) XXX_MessageName

func (*UpdateQuestProgressRequest) XXX_MessageName() string

func (*UpdateQuestProgressRequest) XXX_Size

func (m *UpdateQuestProgressRequest) XXX_Size() int

func (*UpdateQuestProgressRequest) XXX_Unmarshal

func (m *UpdateQuestProgressRequest) XXX_Unmarshal(b []byte) error

type UpdateQuestRequest

type UpdateQuestRequest struct {
	ID                       string           `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Type                     QuestType        `protobuf:"varint,2,opt,name=Type,proto3,enum=quest.QuestType" json:"Type,omitempty"`
	Threshold                float32          `protobuf:"fixed32,3,opt,name=Threshold,proto3" json:"Threshold,omitempty"`
	RewardPoints             uint64           `protobuf:"varint,4,opt,name=RewardPoints,proto3" json:"RewardPoints,omitempty"`
	Description              string           `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	BannerImageURL           string           `protobuf:"bytes,6,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"`
	AmountOfCompletionPerDay uint32           `protobuf:"varint,7,opt,name=AmountOfCompletionPerDay,proto3" json:"AmountOfCompletionPerDay,omitempty"`
	BusinessID               string           `protobuf:"bytes,8,opt,name=BusinessID,proto3" json:"BusinessID,omitempty"`
	UserID                   string           `protobuf:"bytes,9,opt,name=UserID,proto3" json:"UserID,omitempty"`
	ActiveFrom               *types.Timestamp `protobuf:"bytes,21,opt,name=ActiveFrom,proto3" json:"ActiveFrom,omitempty"`
	ActiveTo                 *types.Timestamp `protobuf:"bytes,22,opt,name=ActiveTo,proto3" json:"ActiveTo,omitempty"`
	IsActive                 bool             `protobuf:"varint,51,opt,name=IsActive,proto3" json:"IsActive,omitempty"`
	IsOncePerEntity          bool             `protobuf:"varint,52,opt,name=IsOncePerEntity,proto3" json:"IsOncePerEntity,omitempty"`
	IsBusinessQuest          bool             `protobuf:"varint,53,opt,name=IsBusinessQuest,proto3" json:"IsBusinessQuest,omitempty"`
	IsBusinessSpecific       bool             `protobuf:"varint,54,opt,name=IsBusinessSpecific,proto3" json:"IsBusinessSpecific,omitempty"`
	IsUserSpecific           bool             `protobuf:"varint,55,opt,name=IsUserSpecific,proto3" json:"IsUserSpecific,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}         `json:"-"`
	XXX_unrecognized         []byte           `json:"-"`
	XXX_sizecache            int32            `json:"-"`
}

func (*UpdateQuestRequest) Descriptor

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

func (*UpdateQuestRequest) GetActiveFrom

func (m *UpdateQuestRequest) GetActiveFrom() *types.Timestamp

func (*UpdateQuestRequest) GetActiveTo

func (m *UpdateQuestRequest) GetActiveTo() *types.Timestamp

func (*UpdateQuestRequest) GetAmountOfCompletionPerDay

func (m *UpdateQuestRequest) GetAmountOfCompletionPerDay() uint32

func (*UpdateQuestRequest) GetBannerImageURL

func (m *UpdateQuestRequest) GetBannerImageURL() string

func (*UpdateQuestRequest) GetBusinessID

func (m *UpdateQuestRequest) GetBusinessID() string

func (*UpdateQuestRequest) GetDescription

func (m *UpdateQuestRequest) GetDescription() string

func (*UpdateQuestRequest) GetID

func (m *UpdateQuestRequest) GetID() string

func (*UpdateQuestRequest) GetIsActive

func (m *UpdateQuestRequest) GetIsActive() bool

func (*UpdateQuestRequest) GetIsBusinessQuest

func (m *UpdateQuestRequest) GetIsBusinessQuest() bool

func (*UpdateQuestRequest) GetIsBusinessSpecific

func (m *UpdateQuestRequest) GetIsBusinessSpecific() bool

func (*UpdateQuestRequest) GetIsOncePerEntity

func (m *UpdateQuestRequest) GetIsOncePerEntity() bool

func (*UpdateQuestRequest) GetIsUserSpecific

func (m *UpdateQuestRequest) GetIsUserSpecific() bool

func (*UpdateQuestRequest) GetRewardPoints

func (m *UpdateQuestRequest) GetRewardPoints() uint64

func (*UpdateQuestRequest) GetThreshold

func (m *UpdateQuestRequest) GetThreshold() float32

func (*UpdateQuestRequest) GetType

func (m *UpdateQuestRequest) GetType() QuestType

func (*UpdateQuestRequest) GetUserID

func (m *UpdateQuestRequest) GetUserID() string

func (*UpdateQuestRequest) Marshal

func (m *UpdateQuestRequest) Marshal() (dAtA []byte, err error)

func (*UpdateQuestRequest) MarshalTo

func (m *UpdateQuestRequest) MarshalTo(dAtA []byte) (int, error)

func (*UpdateQuestRequest) MarshalToSizedBuffer

func (m *UpdateQuestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpdateQuestRequest) ProtoMessage

func (*UpdateQuestRequest) ProtoMessage()

func (*UpdateQuestRequest) Reset

func (m *UpdateQuestRequest) Reset()

func (*UpdateQuestRequest) Size

func (m *UpdateQuestRequest) Size() (n int)

func (*UpdateQuestRequest) String

func (m *UpdateQuestRequest) String() string

func (*UpdateQuestRequest) Unmarshal

func (m *UpdateQuestRequest) Unmarshal(dAtA []byte) error

func (*UpdateQuestRequest) Validate

func (this *UpdateQuestRequest) Validate() error

func (*UpdateQuestRequest) XXX_DiscardUnknown

func (m *UpdateQuestRequest) XXX_DiscardUnknown()

func (*UpdateQuestRequest) XXX_Marshal

func (m *UpdateQuestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateQuestRequest) XXX_Merge

func (m *UpdateQuestRequest) XXX_Merge(src proto.Message)

func (*UpdateQuestRequest) XXX_MessageName

func (*UpdateQuestRequest) XXX_MessageName() string

func (*UpdateQuestRequest) XXX_Size

func (m *UpdateQuestRequest) XXX_Size() int

func (*UpdateQuestRequest) XXX_Unmarshal

func (m *UpdateQuestRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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