impl

package
v0.0.0-...-dd21589 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

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) UserInfo

func (s *UserServiceImpl) UserInfo(ctx context.Context, id string) (*model.User, error)

UserInfo implements query.UserService

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) UserInfo

func (s *UserServiceStandaloneImpl) UserInfo(ctx context.Context, id string) (*model.User, error)

UserInfo implements query.UserService

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)

Jump to

Keyboard shortcuts

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