Documentation ¶
Index ¶
- type LinkerGrpc
- func (useCase LinkerGrpc) Count(ctx context.Context, hash *linkerProto.HashWrapper) (*linkerProto.CountResponse, error)
- func (useCase LinkerGrpc) Create(ctx context.Context, data *linkerProto.UrlWrapper) (*linkerProto.HashWrapper, error)
- func (useCase LinkerGrpc) Get(ctx context.Context, hash *linkerProto.HashWrapper) (*linkerProto.UrlWrapper, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkerGrpc ¶
type LinkerGrpc struct { LinkerRepo *domain.LinkerRepo linkerProto.UnimplementedLinkerUseCaseServer }
func MakeLinkerGrpc ¶
func MakeLinkerGrpc(linkerRepo domain.LinkerRepo) LinkerGrpc
func (LinkerGrpc) Count ¶
func (useCase LinkerGrpc) Count(ctx context.Context, hash *linkerProto.HashWrapper) (*linkerProto.CountResponse, error)
func (LinkerGrpc) Create ¶
func (useCase LinkerGrpc) Create(ctx context.Context, data *linkerProto.UrlWrapper) (*linkerProto.HashWrapper, error)
func (LinkerGrpc) Get ¶
func (useCase LinkerGrpc) Get(ctx context.Context, hash *linkerProto.HashWrapper) (*linkerProto.UrlWrapper, error)
Click to show internal directories.
Click to hide internal directories.