client

package
v0.0.0-...-4d8293b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserNotExist = errors.New("user not exist")

Functions

This section is empty.

Types

type IUserInfo

type IUserInfo interface {
	FetchUserInfo(username, email, phoneNumber string) (*dto.UserInfo, error)
	CreateUserInfo(username, email, phoneNumber string) (*dto.UserInfo, error)
	RemoveUserInfo(username, email, phoneNumber string) error
}

type UserInfo

type UserInfo struct {
	// contains filtered or unexported fields
}

func NewUserInfoClient

func NewUserInfoClient(lb *util.LoadBalancer) *UserInfo

func (*UserInfo) CreateUserInfo

func (s *UserInfo) CreateUserInfo(username, email, phoneNumber string) (*dto.UserInfo, error)

func (*UserInfo) FetchUserInfo

func (s *UserInfo) FetchUserInfo(username, email, phoneNumber string) (*dto.UserInfo, error)

func (*UserInfo) RemoveUserInfo

func (s *UserInfo) RemoveUserInfo(username, email, phoneNumber string) error

TODO: Implement this

type UserInfoMock

type UserInfoMock struct{}

func (*UserInfoMock) CreateUserInfo

func (s *UserInfoMock) CreateUserInfo(username, email, phoneNumber string) (*dto.UserInfo, error)

func (*UserInfoMock) FetchUserInfo

func (s *UserInfoMock) FetchUserInfo(username string, email string, phoneNumber string) (*dto.UserInfo, error)

func (*UserInfoMock) RemoveUserInfo

func (s *UserInfoMock) RemoveUserInfo(username, email, phoneNumber string) error

TODO: Implement this

Jump to

Keyboard shortcuts

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