Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServiceImpl ¶
type UserServiceImpl struct {
HelloServiceClient pb.UserQueryServiceClient `grpc:"user-service"`
}
+ioc:autowire=true +ioc:autowire:type=singleton
func GetUserServiceImplSingleton ¶
func GetUserServiceImplSingleton() (*UserServiceImpl, error)
func (*UserServiceImpl) UserPage ¶
func (s *UserServiceImpl) UserPage(ctx context.Context, page, size int) (*model.UserConnection, error)
Users implements query.UserService
type UserServiceImplIOCInterface ¶
type UserServiceImplIOCInterface interface { UserInfo(ctx contextx.Context, id string) (*model.User, error) UserPage(ctx contextx.Context, page, size int) (*model.UserConnection, error) }
func GetUserServiceImplIOCInterfaceSingleton ¶
func GetUserServiceImplIOCInterfaceSingleton() (UserServiceImplIOCInterface, error)
type UserServiceStandaloneImpl ¶
type UserServiceStandaloneImpl struct {
UserService impl.UserServiceImplIOCInterface `singleton:""`
}
+ioc:autowire=true +ioc:autowire:type=singleton
func GetUserServiceStandaloneImplSingleton ¶
func GetUserServiceStandaloneImplSingleton() (*UserServiceStandaloneImpl, error)
func (*UserServiceStandaloneImpl) UserPage ¶
func (s *UserServiceStandaloneImpl) UserPage(ctx context.Context, page, size int) (*model.UserConnection, error)
Users implements query.UserService
type UserServiceStandaloneImplIOCInterface ¶
type UserServiceStandaloneImplIOCInterface interface { UserInfo(ctx contextx.Context, id string) (*model.User, error) UserPage(ctx contextx.Context, page, size int) (*model.UserConnection, error) }
func GetUserServiceStandaloneImplIOCInterfaceSingleton ¶
func GetUserServiceStandaloneImplIOCInterfaceSingleton() (UserServiceStandaloneImplIOCInterface, error)
Click to show internal directories.
Click to hide internal directories.