{"id":26493989,"url":"https://github.com/dwarvesf/x","last_synced_at":"2025-03-20T09:58:31.883Z","repository":{"id":57523672,"uuid":"84297086","full_name":"dwarvesf/x","owner":"dwarvesf","description":"A storage for dwarvesf's extensions that being used in internal and external projects","archived":false,"fork":false,"pushed_at":"2017-10-25T13:34:22.000Z","size":11,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T19:19:22.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwarvesf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-08T08:29:58.000Z","updated_at":"2017-05-09T14:12:51.000Z","dependencies_parsed_at":"2022-09-26T18:10:43.647Z","dependency_job_id":null,"html_url":"https://github.com/dwarvesf/x","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwarvesf%2Fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwarvesf","download_url":"https://codeload.github.com/dwarvesf/x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591451,"owners_count":20477709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T09:58:31.314Z","updated_at":"2025-03-20T09:58:31.873Z","avatar_url":"https://github.com/dwarvesf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x\nA mining storage for dwarvesf's extensions that being used in internal and external projects. \n\n# Services\n\nCurrently services provided:\n- [x] Emailer \n    - Mandrill\n    - Mailgun\n    - Sendgrid\n- [ ] Notifier\n    - FCM \n    - GCM\n\n# How to use\n\nThe mechanism of using this lib is very simple. It uses driver pattern (somehow like `database/sql` in Go source).\n\nFor example, to use Sendgrid as the mail provider:\n- Setup the environment SENDGRID_API_ID and SENDGRID_API_KEY\n- Register by blank import `import \t_ \"github.com/dwarvesf/x/emailer/driver/sendgrid\"`\n- Open provider sendgrid\n```\nsendgrid, err := emailer.UseProvider(\"sendgrid\")\nif err != nil {\n\t\t\n}\n```\n- Config the message:\n```\nvar message = \u0026emailer.Message{\n\t\tTo:      \"xxx@gmail.com\",\n\t\tFrom:    \"yyy@dwarvesf.com\",\n\t\tSubject: \"test\",\n\t\tText:    \"test\",\n\t}\n```\n- Send:  `sendgrid.Send(message)`\n\nEvery provider else works as the way like that.\n\n# Contribution\n\n* Fork it!\n* Create your feature branch (for example FCM):\n\n```\n$ git checkout -b feature/fcm\n```\n\n* Write your function to implement the Notifier interface\n* Commit your changes:\n\n```\n$ git commit -am \"Add implementation FCM\"\n```\n\n* Push to the branch:\n\n```\n$ git push origin feature/fcm\n```\n\n* Submit your pull request\n\n# License\n\nCopyright 2016 Dwarves Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwarvesf%2Fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwarvesf%2Fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwarvesf%2Fx/lists"}