String implements Stringer interface for task type to stringify.
()
| 55 | |
| 56 | // String implements Stringer interface for task type to stringify. |
| 57 | func (t TaskType) String() string { |
| 58 | switch t { |
| 59 | case TaskCreateDB: |
| 60 | return "CreateDB" |
| 61 | case TaskApplyToken: |
| 62 | return "ApplyToken" |
| 63 | case TaskTopUp: |
| 64 | return "TopUp" |
| 65 | case TaskCreateProject: |
| 66 | return "CreateProject" |
| 67 | default: |
| 68 | return "Unknown" |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // String implements Stringer interface for task state to stringify. |
| 73 | func (s TaskState) String() string { |
no outgoing calls