Documentation ¶
Index ¶
- type PhoneBook
- func (pb *PhoneBook) CheckHealthReadiness(ctx context.Context) error
- func (pb *PhoneBook) Delete(ctx context.Context, id int64) error
- func (pb *PhoneBook) GetDetail(ctx context.Context, id int64) (*model.Phonebook, error)
- func (pb *PhoneBook) GetList(ctx context.Context, params *model.GetListRequest) (*model.PhoneBookWithMeta, error)
- func (pb *PhoneBook) Insert(ctx context.Context, params *model.AddPhonebook) error
- func (pb *PhoneBook) IsExistPhoneNumber(ctx context.Context, phone string) (bool, error)
- func (pb *PhoneBook) Update(ctx context.Context, params *model.UpdatePhonebook) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhoneBook ¶
type PhoneBook struct {
// contains filtered or unexported fields
}
PhoneBook ...
func NewPhoneBook ¶
func NewPhoneBook(repo repository.PhoneBookI, logger kitlog.Logger) *PhoneBook
NewPhoneBook ...
func (*PhoneBook) CheckHealthReadiness ¶
CheckHealthReadiness ...
func (*PhoneBook) GetList ¶
func (pb *PhoneBook) GetList(ctx context.Context, params *model.GetListRequest) (*model.PhoneBookWithMeta, error)
GetList ...
func (*PhoneBook) IsExistPhoneNumber ¶
IsExistPhoneNumber ...
type Provider ¶
type Provider interface { GetList(ctx context.Context, params *model.GetListRequest) (*model.PhoneBookWithMeta, error) GetDetail(ctx context.Context, id int64) (*model.Phonebook, error) IsExistPhoneNumber(ctx context.Context, phone string) (bool, error) Insert(ctx context.Context, params *model.AddPhonebook) error Update(ctx context.Context, params *model.UpdatePhonebook) error Delete(ctx context.Context, id int64) error CheckHealthReadiness(ctx context.Context) error }
Provider interface for PhoneBook
Click to show internal directories.
Click to hide internal directories.