Documentation ¶
Index ¶
- type Service
- func (o *Service) Create(ctx context.Context, in *pb.EmailCreateParams) (*pb.EmailResponse, error)
- func (o *Service) Delete(ctx context.Context, in *pb.EmailEntity) (*ms.Response, error)
- func (o *Service) Get(ctx context.Context, in *pb.EmailEntity) (*pb.EmailResponse, error)
- func (o *Service) GetClient(conn *grpc.ClientConn) any
- func (o *Service) List(in *empty.Empty, stream pb.Email_ListServer) error
- func (o *Service) RegisterGrpc(gs *core.GoMsGrpcServer)
- func (o *Service) RegisterHttp(gh *core.GoMsHttpServer, endpoint string) error
- func (o *Service) Update(ctx context.Context, in *pb.EmailUpdateParams) (*ms.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { *abs.Service pb.UnimplementedEmailServer // contains filtered or unexported fields }
Define the service structure
func NewService ¶
func (*Service) Create ¶
func (o *Service) Create(ctx context.Context, in *pb.EmailCreateParams) (*pb.EmailResponse, error)
func (*Service) Get ¶
func (o *Service) Get(ctx context.Context, in *pb.EmailEntity) (*pb.EmailResponse, error)
func (*Service) RegisterGrpc ¶
func (o *Service) RegisterGrpc(gs *core.GoMsGrpcServer)
func (*Service) RegisterHttp ¶
func (o *Service) RegisterHttp(gh *core.GoMsHttpServer, endpoint string) error
Click to show internal directories.
Click to hide internal directories.