Documentation ¶
Index ¶
- Variables
- type EchoService
- func (s *EchoService) CreateEcho(ctx context.Context, req *v1.CreateEchoRequest) (*v1.CreateEchoResponse, error)
- func (s *EchoService) DeleteEcho(ctx context.Context, req *v1.DeleteEchoRequest) (*v1.DeleteEchoResponse, error)
- func (s *EchoService) GetEcho(ctx context.Context, req *v1.GetEchoRequest) (*v1.EchoRecord, error)
- func (s *EchoService) ListEcho(ctx context.Context, req *v1.ListEchoRequest) (*v1.ListEchoResponse, error)
- func (s *EchoService) UpdateEcho(ctx context.Context, req *v1.UpdateEchoRequest) (*v1.UpdateEchoResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewEchoService)
ProviderSet provided NewEchoService.
Functions ¶
This section is empty.
Types ¶
type EchoService ¶
type EchoService struct { v1.UnimplementedEchoServiceServer // contains filtered or unexported fields }
EchoService implements grpc/http server.
func InitService ¶
func NewEchoService ¶
func NewEchoService(ctx context.Context, uc *biz.EchoCase) *EchoService
NewEchoService creates a new EchoService.
func (*EchoService) CreateEcho ¶
func (s *EchoService) CreateEcho(ctx context.Context, req *v1.CreateEchoRequest) (*v1.CreateEchoResponse, error)
func (*EchoService) DeleteEcho ¶
func (s *EchoService) DeleteEcho(ctx context.Context, req *v1.DeleteEchoRequest) (*v1.DeleteEchoResponse, error)
func (*EchoService) GetEcho ¶
func (s *EchoService) GetEcho(ctx context.Context, req *v1.GetEchoRequest) (*v1.EchoRecord, error)
func (*EchoService) ListEcho ¶
func (s *EchoService) ListEcho(ctx context.Context, req *v1.ListEchoRequest) (*v1.ListEchoResponse, error)
func (*EchoService) UpdateEcho ¶
func (s *EchoService) UpdateEcho(ctx context.Context, req *v1.UpdateEchoRequest) (*v1.UpdateEchoResponse, error)
Click to show internal directories.
Click to hide internal directories.