repository

package
v1.0.110 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package repository is a generated protocol buffer package.

It is generated from these files:

repository/repository.proto

It has these top-level messages:

Result
FindByStringValue
SavedCardRequest
SavedCardList

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRepositoryHandler

func RegisterRepositoryHandler(s server.Server, hdlr RepositoryHandler, opts ...server.HandlerOption) error

Types

type FindByStringValue

type FindByStringValue struct {
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"`
	XXX_unrecognized     []byte   `json:"-" bson:"-" structure:"-"`
	XXX_sizecache        int32    `json:"-" bson:"-" structure:"-"`
}

func (*FindByStringValue) Descriptor

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

func (*FindByStringValue) GetValue

func (m *FindByStringValue) GetValue() string

func (*FindByStringValue) ProtoMessage

func (*FindByStringValue) ProtoMessage()

func (*FindByStringValue) Reset

func (m *FindByStringValue) Reset()

func (*FindByStringValue) String

func (m *FindByStringValue) String() string

func (*FindByStringValue) XXX_DiscardUnknown

func (m *FindByStringValue) XXX_DiscardUnknown()

func (*FindByStringValue) XXX_Marshal

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

func (*FindByStringValue) XXX_Merge

func (dst *FindByStringValue) XXX_Merge(src proto.Message)

func (*FindByStringValue) XXX_Size

func (m *FindByStringValue) XXX_Size() int

func (*FindByStringValue) XXX_Unmarshal

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

type RepositoryHandler

type RepositoryHandler interface {
	InsertSavedCard(context.Context, *SavedCardRequest, *Result) error
	DeleteSavedCard(context.Context, *FindByStringValue, *Result) error
	FindSavedCards(context.Context, *SavedCardRequest, *SavedCardList) error
	FindSavedCardById(context.Context, *FindByStringValue, *entity.SavedCard) error
}

type RepositoryService

type RepositoryService interface {
	InsertSavedCard(ctx context.Context, in *SavedCardRequest, opts ...client.CallOption) (*Result, error)
	DeleteSavedCard(ctx context.Context, in *FindByStringValue, opts ...client.CallOption) (*Result, error)
	FindSavedCards(ctx context.Context, in *SavedCardRequest, opts ...client.CallOption) (*SavedCardList, error)
	FindSavedCardById(ctx context.Context, in *FindByStringValue, opts ...client.CallOption) (*entity.SavedCard, error)
}

func NewRepositoryService

func NewRepositoryService(name string, c client.Client) RepositoryService

type Result

type Result struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"`
	XXX_unrecognized     []byte   `json:"-" bson:"-" structure:"-"`
	XXX_sizecache        int32    `json:"-" bson:"-" structure:"-"`
}

func (*Result) Descriptor

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

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

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

func (*Result) XXX_Merge

func (dst *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

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

type SavedCardList

type SavedCardList struct {
	SavedCards           []*entity.SavedCard `protobuf:"bytes,1,rep,name=saved_cards,json=savedCards,proto3" json:"saved_cards,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-" bson:"-" structure:"-"`
	XXX_unrecognized     []byte              `json:"-" bson:"-" structure:"-"`
	XXX_sizecache        int32               `json:"-" bson:"-" structure:"-"`
}

func (*SavedCardList) Descriptor

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

func (*SavedCardList) GetSavedCards

func (m *SavedCardList) GetSavedCards() []*entity.SavedCard

func (*SavedCardList) ProtoMessage

func (*SavedCardList) ProtoMessage()

func (*SavedCardList) Reset

func (m *SavedCardList) Reset()

func (*SavedCardList) String

func (m *SavedCardList) String() string

func (*SavedCardList) XXX_DiscardUnknown

func (m *SavedCardList) XXX_DiscardUnknown()

func (*SavedCardList) XXX_Marshal

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

func (*SavedCardList) XXX_Merge

func (dst *SavedCardList) XXX_Merge(src proto.Message)

func (*SavedCardList) XXX_Size

func (m *SavedCardList) XXX_Size() int

func (*SavedCardList) XXX_Unmarshal

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

type SavedCardRequest

type SavedCardRequest struct {
	Token                string             `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	ProjectId            string             `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	MerchantId           string             `protobuf:"bytes,3,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"`
	MaskedPan            string             `protobuf:"bytes,4,opt,name=masked_pan,json=maskedPan,proto3" json:"masked_pan,omitempty"`
	CardHolder           string             `protobuf:"bytes,5,opt,name=card_holder,json=cardHolder,proto3" json:"card_holder,omitempty"`
	RecurringId          string             `protobuf:"bytes,6,opt,name=recurring_id,json=recurringId,proto3" json:"recurring_id,omitempty"`
	Expire               *entity.CardExpire `protobuf:"bytes,7,opt,name=expire,proto3" json:"expire,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-" bson:"-" structure:"-"`
	XXX_unrecognized     []byte             `json:"-" bson:"-" structure:"-"`
	XXX_sizecache        int32              `json:"-" bson:"-" structure:"-"`
}

func (*SavedCardRequest) Descriptor

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

func (*SavedCardRequest) GetCardHolder added in v1.0.107

func (m *SavedCardRequest) GetCardHolder() string

func (*SavedCardRequest) GetExpire

func (m *SavedCardRequest) GetExpire() *entity.CardExpire

func (*SavedCardRequest) GetMaskedPan

func (m *SavedCardRequest) GetMaskedPan() string

func (*SavedCardRequest) GetMerchantId added in v1.0.105

func (m *SavedCardRequest) GetMerchantId() string

func (*SavedCardRequest) GetProjectId

func (m *SavedCardRequest) GetProjectId() string

func (*SavedCardRequest) GetRecurringId

func (m *SavedCardRequest) GetRecurringId() string

func (*SavedCardRequest) GetToken added in v1.0.105

func (m *SavedCardRequest) GetToken() string

func (*SavedCardRequest) ProtoMessage

func (*SavedCardRequest) ProtoMessage()

func (*SavedCardRequest) Reset

func (m *SavedCardRequest) Reset()

func (*SavedCardRequest) String

func (m *SavedCardRequest) String() string

func (*SavedCardRequest) XXX_DiscardUnknown

func (m *SavedCardRequest) XXX_DiscardUnknown()

func (*SavedCardRequest) XXX_Marshal

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

func (*SavedCardRequest) XXX_Merge

func (dst *SavedCardRequest) XXX_Merge(src proto.Message)

func (*SavedCardRequest) XXX_Size

func (m *SavedCardRequest) XXX_Size() int

func (*SavedCardRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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