Documentation ¶
Index ¶
- func AuthUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func SendEmail(to string, subject string, body string) error
- func SendPrivilegedEmail(userId string, firebaseApp validation.IFirebaseApp)
- func SendPurchasedEmail(transactionDetails transaction.TransactionDetails, ...)
- func SendShippedEmail(transactionDetails transaction.TransactionDetails)
- type ItemServiceServer
- type TransactionServiceServer
- func (r *TransactionServiceServer) All(ctx context.Context, rep *transactionpb.VoidRequest) (res *transactionpb.AllTransactionResponse, err error)
- func (r *TransactionServiceServer) ById(ctx context.Context, req *transactionpb.SpecificTransactionRequest) (res *transactionpb.SpecificTransactionResponse, err error)
- func (r *TransactionServiceServer) RegisterStatus(ctx context.Context, req *transactionpb.UpdateTransactionStatusRequest) (res *transactionpb.VoidResponse, err error)
- func (r *TransactionServiceServer) RegisterTrackingId(ctx context.Context, req *transactionpb.RegisterTrackingIdRequest) (res *transactionpb.VoidResponse, err error)
- type UserServiceServer
- func (r *UserServiceServer) All(ctx context.Context, req *userpb.VoidRequest) (res *userpb.AllUserResponse, err error)
- func (r *UserServiceServer) Privilege(ctx context.Context, req *userpb.PrivilegeUserRequest) (res *userpb.VoidResponse, err error)
- func (r *UserServiceServer) Remove(ctx context.Context, req *userpb.RemoveUserRequest) (res *userpb.VoidResponse, err error)
- func (r *UserServiceServer) Transaction(ctx context.Context, req *userpb.SpecificUserTransactionRequest) (res *userpb.SpecificUserTransactionResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthUnaryServerInterceptor ¶
func AuthUnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func SendPrivilegedEmail ¶
func SendPrivilegedEmail(userId string, firebaseApp validation.IFirebaseApp)
func SendPurchasedEmail ¶
func SendPurchasedEmail(transactionDetails transaction.TransactionDetails, firebaseApp validation.IFirebaseApp)
func SendShippedEmail ¶
func SendShippedEmail(transactionDetails transaction.TransactionDetails)
Types ¶
type ItemServiceServer ¶
type ItemServiceServer struct {
itempb.UnimplementedItemServiceServer
}
func (*ItemServiceServer) All ¶
func (r *ItemServiceServer) All(ctx context.Context, req *itempb.VoidRequest) (res *itempb.AllItemResponse, err error)
func (*ItemServiceServer) Remove ¶
func (r *ItemServiceServer) Remove(ctx context.Context, req *itempb.RemoveItemRequest) (res *itempb.VoidResponse, err error)
type TransactionServiceServer ¶
type TransactionServiceServer struct {
transactionpb.UnimplementedTransactionServiceServer
}
func (*TransactionServiceServer) All ¶
func (r *TransactionServiceServer) All(ctx context.Context, rep *transactionpb.VoidRequest) (res *transactionpb.AllTransactionResponse, err error)
func (*TransactionServiceServer) ById ¶
func (r *TransactionServiceServer) ById(ctx context.Context, req *transactionpb.SpecificTransactionRequest) (res *transactionpb.SpecificTransactionResponse, err error)
func (*TransactionServiceServer) RegisterStatus ¶
func (r *TransactionServiceServer) RegisterStatus(ctx context.Context, req *transactionpb.UpdateTransactionStatusRequest) (res *transactionpb.VoidResponse, err error)
func (*TransactionServiceServer) RegisterTrackingId ¶
func (r *TransactionServiceServer) RegisterTrackingId(ctx context.Context, req *transactionpb.RegisterTrackingIdRequest) (res *transactionpb.VoidResponse, err error)
type UserServiceServer ¶
type UserServiceServer struct {
userpb.UserServiceServer
}
func (*UserServiceServer) All ¶
func (r *UserServiceServer) All(ctx context.Context, req *userpb.VoidRequest) (res *userpb.AllUserResponse, err error)
func (*UserServiceServer) Privilege ¶
func (r *UserServiceServer) Privilege(ctx context.Context, req *userpb.PrivilegeUserRequest) (res *userpb.VoidResponse, err error)
func (*UserServiceServer) Remove ¶
func (r *UserServiceServer) Remove(ctx context.Context, req *userpb.RemoveUserRequest) (res *userpb.VoidResponse, err error)
func (*UserServiceServer) Transaction ¶
func (r *UserServiceServer) Transaction(ctx context.Context, req *userpb.SpecificUserTransactionRequest) (res *userpb.SpecificUserTransactionResponse, err error)
Click to show internal directories.
Click to hide internal directories.