delivery

package
v0.0.0-...-095c751 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 (*ProfileManager) AppendSubByIDs

func (*ProfileManager) CreateProfile

func (manager *ProfileManager) CreateProfile(ctx context.Context,
	in *protobuf.ProfileIDRequest) (*protobuf.ProfileData, error)

func (*ProfileManager) EditProfile

func (*ProfileManager) GetProfile

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)

Directories

Path Synopsis
mocks
Package mock_grpc is a generated GoMock package.
Package mock_grpc is a generated GoMock package.

Jump to

Keyboard shortcuts

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