Documentation ¶
Index ¶
- func CleanProfileData(profile *protobuf.ProfileData) *models.Profile
- type ProfileHandler
- func (h *ProfileHandler) ChangeSubscription(writer http.ResponseWriter, request *http.Request)
- func (h *ProfileHandler) EditProfile(writer http.ResponseWriter, request *http.Request)
- func (h *ProfileHandler) GetProfile(writer http.ResponseWriter, request *http.Request)
- func (h *ProfileHandler) SetProfileCity(writer http.ResponseWriter, request *http.Request)
- func (h *ProfileHandler) SetProfilePhone(writer http.ResponseWriter, request *http.Request)
- type ProfileManager
- func (manager *ProfileManager) AppendSubByIDs(ctx context.Context, in *protobuf.UserIdMerchantIdRequest) (*protobuf.AppendSubResponse, error)
- func (manager *ProfileManager) CreateProfile(ctx context.Context, in *protobuf.ProfileIDRequest) (*protobuf.ProfileData, error)
- func (manager *ProfileManager) EditProfile(ctx context.Context, in *protobuf.EditProfileRequest) (*protobuf.ProfileData, error)
- func (manager *ProfileManager) GetProfile(ctx context.Context, in *protobuf.ProfileIDRequest) (*protobuf.ProfileData, error)
- func (manager *ProfileManager) SetProfileCity(ctx context.Context, in *protobuf.SetCityRequest) (*protobuf.ProfileData, error)
- func (manager *ProfileManager) SetProfilePhone(ctx context.Context, in *protobuf.SetPhoneRequest) (*protobuf.ProfileData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanProfileData ¶
func CleanProfileData(profile *protobuf.ProfileData) *models.Profile
Types ¶
type ProfileHandler ¶
type ProfileHandler struct {
// contains filtered or unexported fields
}
func NewProfileHandler ¶
func NewProfileHandler(profileClient profileproto.ProfileClient, authClient authproto.AuthClient) *ProfileHandler
func (*ProfileHandler) ChangeSubscription ¶
func (h *ProfileHandler) ChangeSubscription(writer http.ResponseWriter, request *http.Request)
func (*ProfileHandler) EditProfile ¶
func (h *ProfileHandler) EditProfile(writer http.ResponseWriter, request *http.Request)
func (*ProfileHandler) GetProfile ¶
func (h *ProfileHandler) GetProfile(writer http.ResponseWriter, request *http.Request)
func (*ProfileHandler) SetProfileCity ¶
func (h *ProfileHandler) SetProfileCity(writer http.ResponseWriter, request *http.Request)
func (*ProfileHandler) SetProfilePhone ¶
func (h *ProfileHandler) SetProfilePhone(writer http.ResponseWriter, request *http.Request)
type ProfileManager ¶
type ProfileManager struct { protobuf.UnimplementedProfileServer // contains filtered or unexported fields }
func NewProfileManager ¶
func NewProfileManager(storage profileusecases.ProfileStorageInterface) *ProfileManager
func (*ProfileManager) AppendSubByIDs ¶
func (manager *ProfileManager) AppendSubByIDs(ctx context.Context, in *protobuf.UserIdMerchantIdRequest) (*protobuf.AppendSubResponse, error)
func (*ProfileManager) CreateProfile ¶
func (manager *ProfileManager) CreateProfile(ctx context.Context, in *protobuf.ProfileIDRequest) (*protobuf.ProfileData, error)
func (*ProfileManager) EditProfile ¶
func (manager *ProfileManager) EditProfile(ctx context.Context, in *protobuf.EditProfileRequest) (*protobuf.ProfileData, error)
func (*ProfileManager) GetProfile ¶
func (manager *ProfileManager) GetProfile(ctx context.Context, in *protobuf.ProfileIDRequest) (*protobuf.ProfileData, error)
func (*ProfileManager) SetProfileCity ¶
func (manager *ProfileManager) SetProfileCity(ctx context.Context, in *protobuf.SetCityRequest) (*protobuf.ProfileData, error)
func (*ProfileManager) SetProfilePhone ¶
func (manager *ProfileManager) SetProfilePhone(ctx context.Context, in *protobuf.SetPhoneRequest) (*protobuf.ProfileData, error)
Click to show internal directories.
Click to hide internal directories.