Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶
func NewValidate ¶
func NewValidate() validate
func RunServerWithTLS ¶
Types ¶
type Repository ¶
type Repository interface { Create(ctx context.Context, u *userv1.CreateRequest) (*ent.User, error) Retrieve(ctx context.Context, id uint64) (*ent.User, error) Update(ctx context.Context, u *userv1.UpdateRequest) (*ent.User, error) Delete(ctx context.Context, id uint64) error List(ctx context.Context, in *userv1.ListRequest) ([]*ent.User, error) Login(ctx context.Context, in *userv1.UserLoginRequest) (*ent.User, error) }
func NewRepoManager ¶
func NewRepoManager(client *ent.Client) Repository
type Service ¶
type Service interface { userv1.UserServiceServer userv1.UserAuthenServiceServer }
func NewService ¶
func NewService(repo Repository, validator validate) Service
Source Files ¶
Click to show internal directories.
Click to hide internal directories.