Skip to content

Commit

Permalink
Add valuer implementation to SentTransactionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstyle committed Sep 13, 2016
1 parent ca5d1fd commit 94b5101
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
package entities

import (
"database/sql/driver"
"time"
)

// SentTransactionStatus type represents sent transaction status
type SentTransactionStatus string

// Value implements driver.Valuer
func (status SentTransactionStatus) Value() (driver.Value, error) {
return driver.Value(string(status)), nil
}

var _ driver.Valuer = SentTransactionStatus("")

const (
// SentTransactionStatusSending is a status indicating that transaction is sending
SentTransactionStatusSending SentTransactionStatus = "sending"
Expand Down

0 comments on commit 94b5101

Please sign in to comment.