├── .gcloudignore ├── .gitignore ├── CREDITS ├── LICENSE ├── README.md ├── cmd └── gbplot │ └── gbplot.go ├── entrypoint.go ├── go.mod ├── go.sum ├── graph └── graph.go ├── img └── example_grapth.png ├── invoice ├── daily_cost.go └── invoice.go └── notify └── slack_notiflier.go /.gcloudignore: -------------------------------------------------------------------------------- 1 | # This file specifies files that are *not* uploaded to Google Cloud Platform 2 | # using gcloud. It follows the same syntax as .gitignore, with the addition of 3 | # "#!include" directives (which insert the entries of the given .gitignore-style 4 | # file at that point). 5 | # 6 | # For more information, run: 7 | # $ gcloud topic gcloudignore 8 | # 9 | .gcloudignore 10 | # If you would like to upload your .git directory, .gitignore file or files 11 | # from your .gitignore file, remove the corresponding line 12 | # below: 13 | .git 14 | .gitignore 15 | 16 | node_modules 17 | #!include:.gitignore 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | /.idea/ 8 | 9 | # Test binary, build with `go test -c` 10 | *.test 11 | 12 | # Output of the go coverage tool, specifically when used with LiteIDE 13 | *.out 14 | 15 | # test output png 16 | *.png 17 | 18 | # Prohibit accidentally committing gcp credentials file 19 | *.json 20 | -------------------------------------------------------------------------------- /CREDITS: -------------------------------------------------------------------------------- 1 | Go (the standard library) 2 | https://golang.org/ 3 | ---------------------------------------------------------------- 4 | Copyright (c) 2009 The Go Authors. All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are 8 | met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | * Redistributions in binary form must reproduce the above 13 | copyright notice, this list of conditions and the following disclaimer 14 | in the documentation and/or other materials provided with the 15 | distribution. 16 | * Neither the name of Google Inc. nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | 32 | ================================================================ 33 | 34 | cloud.google.com/go 35 | https://cloud.google.com/go 36 | ---------------------------------------------------------------- 37 | 38 | Apache License 39 | Version 2.0, January 2004 40 | http://www.apache.org/licenses/ 41 | 42 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 43 | 44 | 1. Definitions. 45 | 46 | "License" shall mean the terms and conditions for use, reproduction, 47 | and distribution as defined by Sections 1 through 9 of this document. 48 | 49 | "Licensor" shall mean the copyright owner or entity authorized by 50 | the copyright owner that is granting the License. 51 | 52 | "Legal Entity" shall mean the union of the acting entity and all 53 | other entities that control, are controlled by, or are under common 54 | control with that entity. For the purposes of this definition, 55 | "control" means (i) the power, direct or indirect, to cause the 56 | direction or management of such entity, whether by contract or 57 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 58 | outstanding shares, or (iii) beneficial ownership of such entity. 59 | 60 | "You" (or "Your") shall mean an individual or Legal Entity 61 | exercising permissions granted by this License. 62 | 63 | "Source" form shall mean the preferred form for making modifications, 64 | including but not limited to software source code, documentation 65 | source, and configuration files. 66 | 67 | "Object" form shall mean any form resulting from mechanical 68 | transformation or translation of a Source form, including but 69 | not limited to compiled object code, generated documentation, 70 | and conversions to other media types. 71 | 72 | "Work" shall mean the work of authorship, whether in Source or 73 | Object form, made available under the License, as indicated by a 74 | copyright notice that is included in or attached to the work 75 | (an example is provided in the Appendix below). 76 | 77 | "Derivative Works" shall mean any work, whether in Source or Object 78 | form, that is based on (or derived from) the Work and for which the 79 | editorial revisions, annotations, elaborations, or other modifications 80 | represent, as a whole, an original work of authorship. For the purposes 81 | of this License, Derivative Works shall not include works that remain 82 | separable from, or merely link (or bind by name) to the interfaces of, 83 | the Work and Derivative Works thereof. 84 | 85 | "Contribution" shall mean any work of authorship, including 86 | the original version of the Work and any modifications or additions 87 | to that Work or Derivative Works thereof, that is intentionally 88 | submitted to Licensor for inclusion in the Work by the copyright owner 89 | or by an individual or Legal Entity authorized to submit on behalf of 90 | the copyright owner. For the purposes of this definition, "submitted" 91 | means any form of electronic, verbal, or written communication sent 92 | to the Licensor or its representatives, including but not limited to 93 | communication on electronic mailing lists, source code control systems, 94 | and issue tracking systems that are managed by, or on behalf of, the 95 | Licensor for the purpose of discussing and improving the Work, but 96 | excluding communication that is conspicuously marked or otherwise 97 | designated in writing by the copyright owner as "Not a Contribution." 98 | 99 | "Contributor" shall mean Licensor and any individual or Legal Entity 100 | on behalf of whom a Contribution has been received by Licensor and 101 | subsequently incorporated within the Work. 102 | 103 | 2. Grant of Copyright License. Subject to the terms and conditions of 104 | this License, each Contributor hereby grants to You a perpetual, 105 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 106 | copyright license to reproduce, prepare Derivative Works of, 107 | publicly display, publicly perform, sublicense, and distribute the 108 | Work and such Derivative Works in Source or Object form. 109 | 110 | 3. Grant of Patent License. Subject to the terms and conditions of 111 | this License, each Contributor hereby grants to You a perpetual, 112 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 113 | (except as stated in this section) patent license to make, have made, 114 | use, offer to sell, sell, import, and otherwise transfer the Work, 115 | where such license applies only to those patent claims licensable 116 | by such Contributor that are necessarily infringed by their 117 | Contribution(s) alone or by combination of their Contribution(s) 118 | with the Work to which such Contribution(s) was submitted. If You 119 | institute patent litigation against any entity (including a 120 | cross-claim or counterclaim in a lawsuit) alleging that the Work 121 | or a Contribution incorporated within the Work constitutes direct 122 | or contributory patent infringement, then any patent licenses 123 | granted to You under this License for that Work shall terminate 124 | as of the date such litigation is filed. 125 | 126 | 4. Redistribution. You may reproduce and distribute copies of the 127 | Work or Derivative Works thereof in any medium, with or without 128 | modifications, and in Source or Object form, provided that You 129 | meet the following conditions: 130 | 131 | (a) You must give any other recipients of the Work or 132 | Derivative Works a copy of this License; and 133 | 134 | (b) You must cause any modified files to carry prominent notices 135 | stating that You changed the files; and 136 | 137 | (c) You must retain, in the Source form of any Derivative Works 138 | that You distribute, all copyright, patent, trademark, and 139 | attribution notices from the Source form of the Work, 140 | excluding those notices that do not pertain to any part of 141 | the Derivative Works; and 142 | 143 | (d) If the Work includes a "NOTICE" text file as part of its 144 | distribution, then any Derivative Works that You distribute must 145 | include a readable copy of the attribution notices contained 146 | within such NOTICE file, excluding those notices that do not 147 | pertain to any part of the Derivative Works, in at least one 148 | of the following places: within a NOTICE text file distributed 149 | as part of the Derivative Works; within the Source form or 150 | documentation, if provided along with the Derivative Works; or, 151 | within a display generated by the Derivative Works, if and 152 | wherever such third-party notices normally appear. The contents 153 | of the NOTICE file are for informational purposes only and 154 | do not modify the License. You may add Your own attribution 155 | notices within Derivative Works that You distribute, alongside 156 | or as an addendum to the NOTICE text from the Work, provided 157 | that such additional attribution notices cannot be construed 158 | as modifying the License. 159 | 160 | You may add Your own copyright statement to Your modifications and 161 | may provide additional or different license terms and conditions 162 | for use, reproduction, or distribution of Your modifications, or 163 | for any such Derivative Works as a whole, provided Your use, 164 | reproduction, and distribution of the Work otherwise complies with 165 | the conditions stated in this License. 166 | 167 | 5. Submission of Contributions. Unless You explicitly state otherwise, 168 | any Contribution intentionally submitted for inclusion in the Work 169 | by You to the Licensor shall be under the terms and conditions of 170 | this License, without any additional terms or conditions. 171 | Notwithstanding the above, nothing herein shall supersede or modify 172 | the terms of any separate license agreement you may have executed 173 | with Licensor regarding such Contributions. 174 | 175 | 6. Trademarks. This License does not grant permission to use the trade 176 | names, trademarks, service marks, or product names of the Licensor, 177 | except as required for reasonable and customary use in describing the 178 | origin of the Work and reproducing the content of the NOTICE file. 179 | 180 | 7. Disclaimer of Warranty. Unless required by applicable law or 181 | agreed to in writing, Licensor provides the Work (and each 182 | Contributor provides its Contributions) on an "AS IS" BASIS, 183 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 184 | implied, including, without limitation, any warranties or conditions 185 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 186 | PARTICULAR PURPOSE. You are solely responsible for determining the 187 | appropriateness of using or redistributing the Work and assume any 188 | risks associated with Your exercise of permissions under this License. 189 | 190 | 8. Limitation of Liability. In no event and under no legal theory, 191 | whether in tort (including negligence), contract, or otherwise, 192 | unless required by applicable law (such as deliberate and grossly 193 | negligent acts) or agreed to in writing, shall any Contributor be 194 | liable to You for damages, including any direct, indirect, special, 195 | incidental, or consequential damages of any character arising as a 196 | result of this License or out of the use or inability to use the 197 | Work (including but not limited to damages for loss of goodwill, 198 | work stoppage, computer failure or malfunction, or any and all 199 | other commercial damages or losses), even if such Contributor 200 | has been advised of the possibility of such damages. 201 | 202 | 9. Accepting Warranty or Additional Liability. While redistributing 203 | the Work or Derivative Works thereof, You may choose to offer, 204 | and charge a fee for, acceptance of support, warranty, indemnity, 205 | or other liability obligations and/or rights consistent with this 206 | License. However, in accepting such obligations, You may act only 207 | on Your own behalf and on Your sole responsibility, not on behalf 208 | of any other Contributor, and only if You agree to indemnify, 209 | defend, and hold each Contributor harmless for any liability 210 | incurred by, or claims asserted against, such Contributor by reason 211 | of your accepting any such warranty or additional liability. 212 | 213 | END OF TERMS AND CONDITIONS 214 | 215 | APPENDIX: How to apply the Apache License to your work. 216 | 217 | To apply the Apache License to your work, attach the following 218 | boilerplate notice, with the fields enclosed by brackets "[]" 219 | replaced with your own identifying information. (Don't include 220 | the brackets!) The text should be enclosed in the appropriate 221 | comment syntax for the file format. We also recommend that a 222 | file or class name and description of purpose be included on the 223 | same "printed page" as the copyright notice for easier 224 | identification within third-party archives. 225 | 226 | Copyright [yyyy] [name of copyright owner] 227 | 228 | Licensed under the Apache License, Version 2.0 (the "License"); 229 | you may not use this file except in compliance with the License. 230 | You may obtain a copy of the License at 231 | 232 | http://www.apache.org/licenses/LICENSE-2.0 233 | 234 | Unless required by applicable law or agreed to in writing, software 235 | distributed under the License is distributed on an "AS IS" BASIS, 236 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 237 | See the License for the specific language governing permissions and 238 | limitations under the License. 239 | 240 | ================================================================ 241 | 242 | github.com/ajstarks/svgo 243 | https://github.com/ajstarks/svgo 244 | ---------------------------------------------------------------- 245 | The contents of this repository are Licensed under 246 | the Creative Commons Attribution 3.0 license as described in 247 | http://creativecommons.org/licenses/by/3.0/us/ 248 | 249 | ================================================================ 250 | 251 | github.com/davecgh/go-spew 252 | https://github.com/davecgh/go-spew 253 | ---------------------------------------------------------------- 254 | ISC License 255 | 256 | Copyright (c) 2012-2016 Dave Collins 257 | 258 | Permission to use, copy, modify, and distribute this software for any 259 | purpose with or without fee is hereby granted, provided that the above 260 | copyright notice and this permission notice appear in all copies. 261 | 262 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 263 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 264 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 265 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 266 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 267 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 268 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 269 | 270 | ================================================================ 271 | 272 | github.com/fogleman/gg 273 | https://github.com/fogleman/gg 274 | ---------------------------------------------------------------- 275 | Copyright (C) 2016 Michael Fogleman 276 | 277 | Permission is hereby granted, free of charge, to any person obtaining a copy 278 | of this software and associated documentation files (the "Software"), to deal 279 | in the Software without restriction, including without limitation the rights 280 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 281 | copies of the Software, and to permit persons to whom the Software is 282 | furnished to do so, subject to the following conditions: 283 | 284 | The above copyright notice and this permission notice shall be included in all 285 | copies or substantial portions of the Software. 286 | 287 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 288 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 289 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 290 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 291 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 292 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 293 | SOFTWARE. 294 | 295 | ================================================================ 296 | 297 | github.com/golang/freetype 298 | https://github.com/golang/freetype 299 | ---------------------------------------------------------------- 300 | Use of the Freetype-Go software is subject to your choice of exactly one of 301 | the following two licenses: 302 | * The FreeType License, which is similar to the original BSD license with 303 | an advertising clause, or 304 | * The GNU General Public License (GPL), version 2 or later. 305 | 306 | The text of these licenses are available in the licenses/ftl.txt and the 307 | licenses/gpl.txt files respectively. They are also available at 308 | http://freetype.sourceforge.net/license.html 309 | 310 | The Luxi fonts in the testdata directory are licensed separately. See the 311 | testdata/COPYING file for details. 312 | 313 | ================================================================ 314 | 315 | github.com/golang/glog 316 | https://github.com/golang/glog 317 | ---------------------------------------------------------------- 318 | Apache License 319 | Version 2.0, January 2004 320 | http://www.apache.org/licenses/ 321 | 322 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 323 | 324 | 1. Definitions. 325 | 326 | "License" shall mean the terms and conditions for use, reproduction, and 327 | distribution as defined by Sections 1 through 9 of this document. 328 | 329 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 330 | owner that is granting the License. 331 | 332 | "Legal Entity" shall mean the union of the acting entity and all other entities 333 | that control, are controlled by, or are under common control with that entity. 334 | For the purposes of this definition, "control" means (i) the power, direct or 335 | indirect, to cause the direction or management of such entity, whether by 336 | contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the 337 | outstanding shares, or (iii) beneficial ownership of such entity. 338 | 339 | "You" (or "Your") shall mean an individual or Legal Entity exercising 340 | permissions granted by this License. 341 | 342 | "Source" form shall mean the preferred form for making modifications, including 343 | but not limited to software source code, documentation source, and configuration 344 | files. 345 | 346 | "Object" form shall mean any form resulting from mechanical transformation or 347 | translation of a Source form, including but not limited to compiled object code, 348 | generated documentation, and conversions to other media types. 349 | 350 | "Work" shall mean the work of authorship, whether in Source or Object form, made 351 | available under the License, as indicated by a copyright notice that is included 352 | in or attached to the work (an example is provided in the Appendix below). 353 | 354 | "Derivative Works" shall mean any work, whether in Source or Object form, that 355 | is based on (or derived from) the Work and for which the editorial revisions, 356 | annotations, elaborations, or other modifications represent, as a whole, an 357 | original work of authorship. For the purposes of this License, Derivative Works 358 | shall not include works that remain separable from, or merely link (or bind by 359 | name) to the interfaces of, the Work and Derivative Works thereof. 360 | 361 | "Contribution" shall mean any work of authorship, including the original version 362 | of the Work and any modifications or additions to that Work or Derivative Works 363 | thereof, that is intentionally submitted to Licensor for inclusion in the Work 364 | by the copyright owner or by an individual or Legal Entity authorized to submit 365 | on behalf of the copyright owner. For the purposes of this definition, 366 | "submitted" means any form of electronic, verbal, or written communication sent 367 | to the Licensor or its representatives, including but not limited to 368 | communication on electronic mailing lists, source code control systems, and 369 | issue tracking systems that are managed by, or on behalf of, the Licensor for 370 | the purpose of discussing and improving the Work, but excluding communication 371 | that is conspicuously marked or otherwise designated in writing by the copyright 372 | owner as "Not a Contribution." 373 | 374 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 375 | of whom a Contribution has been received by Licensor and subsequently 376 | incorporated within the Work. 377 | 378 | 2. Grant of Copyright License. 379 | 380 | Subject to the terms and conditions of this License, each Contributor hereby 381 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 382 | irrevocable copyright license to reproduce, prepare Derivative Works of, 383 | publicly display, publicly perform, sublicense, and distribute the Work and such 384 | Derivative Works in Source or Object form. 385 | 386 | 3. Grant of Patent License. 387 | 388 | Subject to the terms and conditions of this License, each Contributor hereby 389 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 390 | irrevocable (except as stated in this section) patent license to make, have 391 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where 392 | such license applies only to those patent claims licensable by such Contributor 393 | that are necessarily infringed by their Contribution(s) alone or by combination 394 | of their Contribution(s) with the Work to which such Contribution(s) was 395 | submitted. If You institute patent litigation against any entity (including a 396 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a 397 | Contribution incorporated within the Work constitutes direct or contributory 398 | patent infringement, then any patent licenses granted to You under this License 399 | for that Work shall terminate as of the date such litigation is filed. 400 | 401 | 4. Redistribution. 402 | 403 | You may reproduce and distribute copies of the Work or Derivative Works thereof 404 | in any medium, with or without modifications, and in Source or Object form, 405 | provided that You meet the following conditions: 406 | 407 | You must give any other recipients of the Work or Derivative Works a copy of 408 | this License; and 409 | You must cause any modified files to carry prominent notices stating that You 410 | changed the files; and 411 | You must retain, in the Source form of any Derivative Works that You distribute, 412 | all copyright, patent, trademark, and attribution notices from the Source form 413 | of the Work, excluding those notices that do not pertain to any part of the 414 | Derivative Works; and 415 | If the Work includes a "NOTICE" text file as part of its distribution, then any 416 | Derivative Works that You distribute must include a readable copy of the 417 | attribution notices contained within such NOTICE file, excluding those notices 418 | that do not pertain to any part of the Derivative Works, in at least one of the 419 | following places: within a NOTICE text file distributed as part of the 420 | Derivative Works; within the Source form or documentation, if provided along 421 | with the Derivative Works; or, within a display generated by the Derivative 422 | Works, if and wherever such third-party notices normally appear. The contents of 423 | the NOTICE file are for informational purposes only and do not modify the 424 | License. You may add Your own attribution notices within Derivative Works that 425 | You distribute, alongside or as an addendum to the NOTICE text from the Work, 426 | provided that such additional attribution notices cannot be construed as 427 | modifying the License. 428 | You may add Your own copyright statement to Your modifications and may provide 429 | additional or different license terms and conditions for use, reproduction, or 430 | distribution of Your modifications, or for any such Derivative Works as a whole, 431 | provided Your use, reproduction, and distribution of the Work otherwise complies 432 | with the conditions stated in this License. 433 | 434 | 5. Submission of Contributions. 435 | 436 | Unless You explicitly state otherwise, any Contribution intentionally submitted 437 | for inclusion in the Work by You to the Licensor shall be under the terms and 438 | conditions of this License, without any additional terms or conditions. 439 | Notwithstanding the above, nothing herein shall supersede or modify the terms of 440 | any separate license agreement you may have executed with Licensor regarding 441 | such Contributions. 442 | 443 | 6. Trademarks. 444 | 445 | This License does not grant permission to use the trade names, trademarks, 446 | service marks, or product names of the Licensor, except as required for 447 | reasonable and customary use in describing the origin of the Work and 448 | reproducing the content of the NOTICE file. 449 | 450 | 7. Disclaimer of Warranty. 451 | 452 | Unless required by applicable law or agreed to in writing, Licensor provides the 453 | Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, 454 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 455 | including, without limitation, any warranties or conditions of TITLE, 456 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are 457 | solely responsible for determining the appropriateness of using or 458 | redistributing the Work and assume any risks associated with Your exercise of 459 | permissions under this License. 460 | 461 | 8. Limitation of Liability. 462 | 463 | In no event and under no legal theory, whether in tort (including negligence), 464 | contract, or otherwise, unless required by applicable law (such as deliberate 465 | and grossly negligent acts) or agreed to in writing, shall any Contributor be 466 | liable to You for damages, including any direct, indirect, special, incidental, 467 | or consequential damages of any character arising as a result of this License or 468 | out of the use or inability to use the Work (including but not limited to 469 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or 470 | any and all other commercial damages or losses), even if such Contributor has 471 | been advised of the possibility of such damages. 472 | 473 | 9. Accepting Warranty or Additional Liability. 474 | 475 | While redistributing the Work or Derivative Works thereof, You may choose to 476 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or 477 | other liability obligations and/or rights consistent with this License. However, 478 | in accepting such obligations, You may act only on Your own behalf and on Your 479 | sole responsibility, not on behalf of any other Contributor, and only if You 480 | agree to indemnify, defend, and hold each Contributor harmless for any liability 481 | incurred by, or claims asserted against, such Contributor by reason of your 482 | accepting any such warranty or additional liability. 483 | 484 | END OF TERMS AND CONDITIONS 485 | 486 | APPENDIX: How to apply the Apache License to your work 487 | 488 | To apply the Apache License to your work, attach the following boilerplate 489 | notice, with the fields enclosed by brackets "[]" replaced with your own 490 | identifying information. (Don't include the brackets!) The text should be 491 | enclosed in the appropriate comment syntax for the file format. We also 492 | recommend that a file or class name and description of purpose be included on 493 | the same "printed page" as the copyright notice for easier identification within 494 | third-party archives. 495 | 496 | Copyright [yyyy] [name of copyright owner] 497 | 498 | Licensed under the Apache License, Version 2.0 (the "License"); 499 | you may not use this file except in compliance with the License. 500 | You may obtain a copy of the License at 501 | 502 | http://www.apache.org/licenses/LICENSE-2.0 503 | 504 | Unless required by applicable law or agreed to in writing, software 505 | distributed under the License is distributed on an "AS IS" BASIS, 506 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 507 | See the License for the specific language governing permissions and 508 | limitations under the License. 509 | 510 | ================================================================ 511 | 512 | github.com/golang/protobuf 513 | https://github.com/golang/protobuf 514 | ---------------------------------------------------------------- 515 | Copyright 2010 The Go Authors. All rights reserved. 516 | 517 | Redistribution and use in source and binary forms, with or without 518 | modification, are permitted provided that the following conditions are 519 | met: 520 | 521 | * Redistributions of source code must retain the above copyright 522 | notice, this list of conditions and the following disclaimer. 523 | * Redistributions in binary form must reproduce the above 524 | copyright notice, this list of conditions and the following disclaimer 525 | in the documentation and/or other materials provided with the 526 | distribution. 527 | * Neither the name of Google Inc. nor the names of its 528 | contributors may be used to endorse or promote products derived from 529 | this software without specific prior written permission. 530 | 531 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 532 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 533 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 534 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 535 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 536 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 537 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 538 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 539 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 540 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 541 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 542 | 543 | 544 | ================================================================ 545 | 546 | github.com/google/go-cmp 547 | https://github.com/google/go-cmp 548 | ---------------------------------------------------------------- 549 | Copyright (c) 2017 The Go Authors. All rights reserved. 550 | 551 | Redistribution and use in source and binary forms, with or without 552 | modification, are permitted provided that the following conditions are 553 | met: 554 | 555 | * Redistributions of source code must retain the above copyright 556 | notice, this list of conditions and the following disclaimer. 557 | * Redistributions in binary form must reproduce the above 558 | copyright notice, this list of conditions and the following disclaimer 559 | in the documentation and/or other materials provided with the 560 | distribution. 561 | * Neither the name of Google Inc. nor the names of its 562 | contributors may be used to endorse or promote products derived from 563 | this software without specific prior written permission. 564 | 565 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 566 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 567 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 568 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 569 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 570 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 571 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 572 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 573 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 574 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 575 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 576 | 577 | ================================================================ 578 | 579 | github.com/google/martian 580 | https://github.com/google/martian 581 | ---------------------------------------------------------------- 582 | 583 | Apache License 584 | Version 2.0, January 2004 585 | http://www.apache.org/licenses/ 586 | 587 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 588 | 589 | 1. Definitions. 590 | 591 | "License" shall mean the terms and conditions for use, reproduction, 592 | and distribution as defined by Sections 1 through 9 of this document. 593 | 594 | "Licensor" shall mean the copyright owner or entity authorized by 595 | the copyright owner that is granting the License. 596 | 597 | "Legal Entity" shall mean the union of the acting entity and all 598 | other entities that control, are controlled by, or are under common 599 | control with that entity. For the purposes of this definition, 600 | "control" means (i) the power, direct or indirect, to cause the 601 | direction or management of such entity, whether by contract or 602 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 603 | outstanding shares, or (iii) beneficial ownership of such entity. 604 | 605 | "You" (or "Your") shall mean an individual or Legal Entity 606 | exercising permissions granted by this License. 607 | 608 | "Source" form shall mean the preferred form for making modifications, 609 | including but not limited to software source code, documentation 610 | source, and configuration files. 611 | 612 | "Object" form shall mean any form resulting from mechanical 613 | transformation or translation of a Source form, including but 614 | not limited to compiled object code, generated documentation, 615 | and conversions to other media types. 616 | 617 | "Work" shall mean the work of authorship, whether in Source or 618 | Object form, made available under the License, as indicated by a 619 | copyright notice that is included in or attached to the work 620 | (an example is provided in the Appendix below). 621 | 622 | "Derivative Works" shall mean any work, whether in Source or Object 623 | form, that is based on (or derived from) the Work and for which the 624 | editorial revisions, annotations, elaborations, or other modifications 625 | represent, as a whole, an original work of authorship. For the purposes 626 | of this License, Derivative Works shall not include works that remain 627 | separable from, or merely link (or bind by name) to the interfaces of, 628 | the Work and Derivative Works thereof. 629 | 630 | "Contribution" shall mean any work of authorship, including 631 | the original version of the Work and any modifications or additions 632 | to that Work or Derivative Works thereof, that is intentionally 633 | submitted to Licensor for inclusion in the Work by the copyright owner 634 | or by an individual or Legal Entity authorized to submit on behalf of 635 | the copyright owner. For the purposes of this definition, "submitted" 636 | means any form of electronic, verbal, or written communication sent 637 | to the Licensor or its representatives, including but not limited to 638 | communication on electronic mailing lists, source code control systems, 639 | and issue tracking systems that are managed by, or on behalf of, the 640 | Licensor for the purpose of discussing and improving the Work, but 641 | excluding communication that is conspicuously marked or otherwise 642 | designated in writing by the copyright owner as "Not a Contribution." 643 | 644 | "Contributor" shall mean Licensor and any individual or Legal Entity 645 | on behalf of whom a Contribution has been received by Licensor and 646 | subsequently incorporated within the Work. 647 | 648 | 2. Grant of Copyright License. Subject to the terms and conditions of 649 | this License, each Contributor hereby grants to You a perpetual, 650 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 651 | copyright license to reproduce, prepare Derivative Works of, 652 | publicly display, publicly perform, sublicense, and distribute the 653 | Work and such Derivative Works in Source or Object form. 654 | 655 | 3. Grant of Patent License. Subject to the terms and conditions of 656 | this License, each Contributor hereby grants to You a perpetual, 657 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 658 | (except as stated in this section) patent license to make, have made, 659 | use, offer to sell, sell, import, and otherwise transfer the Work, 660 | where such license applies only to those patent claims licensable 661 | by such Contributor that are necessarily infringed by their 662 | Contribution(s) alone or by combination of their Contribution(s) 663 | with the Work to which such Contribution(s) was submitted. If You 664 | institute patent litigation against any entity (including a 665 | cross-claim or counterclaim in a lawsuit) alleging that the Work 666 | or a Contribution incorporated within the Work constitutes direct 667 | or contributory patent infringement, then any patent licenses 668 | granted to You under this License for that Work shall terminate 669 | as of the date such litigation is filed. 670 | 671 | 4. Redistribution. You may reproduce and distribute copies of the 672 | Work or Derivative Works thereof in any medium, with or without 673 | modifications, and in Source or Object form, provided that You 674 | meet the following conditions: 675 | 676 | (a) You must give any other recipients of the Work or 677 | Derivative Works a copy of this License; and 678 | 679 | (b) You must cause any modified files to carry prominent notices 680 | stating that You changed the files; and 681 | 682 | (c) You must retain, in the Source form of any Derivative Works 683 | that You distribute, all copyright, patent, trademark, and 684 | attribution notices from the Source form of the Work, 685 | excluding those notices that do not pertain to any part of 686 | the Derivative Works; and 687 | 688 | (d) If the Work includes a "NOTICE" text file as part of its 689 | distribution, then any Derivative Works that You distribute must 690 | include a readable copy of the attribution notices contained 691 | within such NOTICE file, excluding those notices that do not 692 | pertain to any part of the Derivative Works, in at least one 693 | of the following places: within a NOTICE text file distributed 694 | as part of the Derivative Works; within the Source form or 695 | documentation, if provided along with the Derivative Works; or, 696 | within a display generated by the Derivative Works, if and 697 | wherever such third-party notices normally appear. The contents 698 | of the NOTICE file are for informational purposes only and 699 | do not modify the License. You may add Your own attribution 700 | notices within Derivative Works that You distribute, alongside 701 | or as an addendum to the NOTICE text from the Work, provided 702 | that such additional attribution notices cannot be construed 703 | as modifying the License. 704 | 705 | You may add Your own copyright statement to Your modifications and 706 | may provide additional or different license terms and conditions 707 | for use, reproduction, or distribution of Your modifications, or 708 | for any such Derivative Works as a whole, provided Your use, 709 | reproduction, and distribution of the Work otherwise complies with 710 | the conditions stated in this License. 711 | 712 | 5. Submission of Contributions. Unless You explicitly state otherwise, 713 | any Contribution intentionally submitted for inclusion in the Work 714 | by You to the Licensor shall be under the terms and conditions of 715 | this License, without any additional terms or conditions. 716 | Notwithstanding the above, nothing herein shall supersede or modify 717 | the terms of any separate license agreement you may have executed 718 | with Licensor regarding such Contributions. 719 | 720 | 6. Trademarks. This License does not grant permission to use the trade 721 | names, trademarks, service marks, or product names of the Licensor, 722 | except as required for reasonable and customary use in describing the 723 | origin of the Work and reproducing the content of the NOTICE file. 724 | 725 | 7. Disclaimer of Warranty. Unless required by applicable law or 726 | agreed to in writing, Licensor provides the Work (and each 727 | Contributor provides its Contributions) on an "AS IS" BASIS, 728 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 729 | implied, including, without limitation, any warranties or conditions 730 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 731 | PARTICULAR PURPOSE. You are solely responsible for determining the 732 | appropriateness of using or redistributing the Work and assume any 733 | risks associated with Your exercise of permissions under this License. 734 | 735 | 8. Limitation of Liability. In no event and under no legal theory, 736 | whether in tort (including negligence), contract, or otherwise, 737 | unless required by applicable law (such as deliberate and grossly 738 | negligent acts) or agreed to in writing, shall any Contributor be 739 | liable to You for damages, including any direct, indirect, special, 740 | incidental, or consequential damages of any character arising as a 741 | result of this License or out of the use or inability to use the 742 | Work (including but not limited to damages for loss of goodwill, 743 | work stoppage, computer failure or malfunction, or any and all 744 | other commercial damages or losses), even if such Contributor 745 | has been advised of the possibility of such damages. 746 | 747 | 9. Accepting Warranty or Additional Liability. While redistributing 748 | the Work or Derivative Works thereof, You may choose to offer, 749 | and charge a fee for, acceptance of support, warranty, indemnity, 750 | or other liability obligations and/or rights consistent with this 751 | License. However, in accepting such obligations, You may act only 752 | on Your own behalf and on Your sole responsibility, not on behalf 753 | of any other Contributor, and only if You agree to indemnify, 754 | defend, and hold each Contributor harmless for any liability 755 | incurred by, or claims asserted against, such Contributor by reason 756 | of your accepting any such warranty or additional liability. 757 | 758 | END OF TERMS AND CONDITIONS 759 | 760 | APPENDIX: How to apply the Apache License to your work. 761 | 762 | To apply the Apache License to your work, attach the following 763 | boilerplate notice, with the fields enclosed by brackets "[]" 764 | replaced with your own identifying information. (Don't include 765 | the brackets!) The text should be enclosed in the appropriate 766 | comment syntax for the file format. We also recommend that a 767 | file or class name and description of purpose be included on the 768 | same "printed page" as the copyright notice for easier 769 | identification within third-party archives. 770 | 771 | Copyright [yyyy] [name of copyright owner] 772 | 773 | Licensed under the Apache License, Version 2.0 (the "License"); 774 | you may not use this file except in compliance with the License. 775 | You may obtain a copy of the License at 776 | 777 | http://www.apache.org/licenses/LICENSE-2.0 778 | 779 | Unless required by applicable law or agreed to in writing, software 780 | distributed under the License is distributed on an "AS IS" BASIS, 781 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 782 | See the License for the specific language governing permissions and 783 | limitations under the License. 784 | 785 | ================================================================ 786 | 787 | github.com/googleapis/gax-go/v2 788 | https://github.com/googleapis/gax-go/v2 789 | ---------------------------------------------------------------- 790 | Copyright 2016, Google Inc. 791 | All rights reserved. 792 | Redistribution and use in source and binary forms, with or without 793 | modification, are permitted provided that the following conditions are 794 | met: 795 | 796 | * Redistributions of source code must retain the above copyright 797 | notice, this list of conditions and the following disclaimer. 798 | * Redistributions in binary form must reproduce the above 799 | copyright notice, this list of conditions and the following disclaimer 800 | in the documentation and/or other materials provided with the 801 | distribution. 802 | * Neither the name of Google Inc. nor the names of its 803 | contributors may be used to endorse or promote products derived from 804 | this software without specific prior written permission. 805 | 806 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 807 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 808 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 809 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 810 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 811 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 812 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 813 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 814 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 815 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 816 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 817 | 818 | ================================================================ 819 | 820 | github.com/gorilla/websocket 821 | https://github.com/gorilla/websocket 822 | ---------------------------------------------------------------- 823 | Copyright (c) 2013 The Gorilla WebSocket Authors. All rights reserved. 824 | 825 | Redistribution and use in source and binary forms, with or without 826 | modification, are permitted provided that the following conditions are met: 827 | 828 | Redistributions of source code must retain the above copyright notice, this 829 | list of conditions and the following disclaimer. 830 | 831 | Redistributions in binary form must reproduce the above copyright notice, 832 | this list of conditions and the following disclaimer in the documentation 833 | and/or other materials provided with the distribution. 834 | 835 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 836 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 837 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 838 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 839 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 840 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 841 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 842 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 843 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 844 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 845 | 846 | ================================================================ 847 | 848 | github.com/hashicorp/golang-lru 849 | https://github.com/hashicorp/golang-lru 850 | ---------------------------------------------------------------- 851 | Mozilla Public License, version 2.0 852 | 853 | 1. Definitions 854 | 855 | 1.1. "Contributor" 856 | 857 | means each individual or legal entity that creates, contributes to the 858 | creation of, or owns Covered Software. 859 | 860 | 1.2. "Contributor Version" 861 | 862 | means the combination of the Contributions of others (if any) used by a 863 | Contributor and that particular Contributor's Contribution. 864 | 865 | 1.3. "Contribution" 866 | 867 | means Covered Software of a particular Contributor. 868 | 869 | 1.4. "Covered Software" 870 | 871 | means Source Code Form to which the initial Contributor has attached the 872 | notice in Exhibit A, the Executable Form of such Source Code Form, and 873 | Modifications of such Source Code Form, in each case including portions 874 | thereof. 875 | 876 | 1.5. "Incompatible With Secondary Licenses" 877 | means 878 | 879 | a. that the initial Contributor has attached the notice described in 880 | Exhibit B to the Covered Software; or 881 | 882 | b. that the Covered Software was made available under the terms of 883 | version 1.1 or earlier of the License, but not also under the terms of 884 | a Secondary License. 885 | 886 | 1.6. "Executable Form" 887 | 888 | means any form of the work other than Source Code Form. 889 | 890 | 1.7. "Larger Work" 891 | 892 | means a work that combines Covered Software with other material, in a 893 | separate file or files, that is not Covered Software. 894 | 895 | 1.8. "License" 896 | 897 | means this document. 898 | 899 | 1.9. "Licensable" 900 | 901 | means having the right to grant, to the maximum extent possible, whether 902 | at the time of the initial grant or subsequently, any and all of the 903 | rights conveyed by this License. 904 | 905 | 1.10. "Modifications" 906 | 907 | means any of the following: 908 | 909 | a. any file in Source Code Form that results from an addition to, 910 | deletion from, or modification of the contents of Covered Software; or 911 | 912 | b. any new file in Source Code Form that contains any Covered Software. 913 | 914 | 1.11. "Patent Claims" of a Contributor 915 | 916 | means any patent claim(s), including without limitation, method, 917 | process, and apparatus claims, in any patent Licensable by such 918 | Contributor that would be infringed, but for the grant of the License, 919 | by the making, using, selling, offering for sale, having made, import, 920 | or transfer of either its Contributions or its Contributor Version. 921 | 922 | 1.12. "Secondary License" 923 | 924 | means either the GNU General Public License, Version 2.0, the GNU Lesser 925 | General Public License, Version 2.1, the GNU Affero General Public 926 | License, Version 3.0, or any later versions of those licenses. 927 | 928 | 1.13. "Source Code Form" 929 | 930 | means the form of the work preferred for making modifications. 931 | 932 | 1.14. "You" (or "Your") 933 | 934 | means an individual or a legal entity exercising rights under this 935 | License. For legal entities, "You" includes any entity that controls, is 936 | controlled by, or is under common control with You. For purposes of this 937 | definition, "control" means (a) the power, direct or indirect, to cause 938 | the direction or management of such entity, whether by contract or 939 | otherwise, or (b) ownership of more than fifty percent (50%) of the 940 | outstanding shares or beneficial ownership of such entity. 941 | 942 | 943 | 2. License Grants and Conditions 944 | 945 | 2.1. Grants 946 | 947 | Each Contributor hereby grants You a world-wide, royalty-free, 948 | non-exclusive license: 949 | 950 | a. under intellectual property rights (other than patent or trademark) 951 | Licensable by such Contributor to use, reproduce, make available, 952 | modify, display, perform, distribute, and otherwise exploit its 953 | Contributions, either on an unmodified basis, with Modifications, or 954 | as part of a Larger Work; and 955 | 956 | b. under Patent Claims of such Contributor to make, use, sell, offer for 957 | sale, have made, import, and otherwise transfer either its 958 | Contributions or its Contributor Version. 959 | 960 | 2.2. Effective Date 961 | 962 | The licenses granted in Section 2.1 with respect to any Contribution 963 | become effective for each Contribution on the date the Contributor first 964 | distributes such Contribution. 965 | 966 | 2.3. Limitations on Grant Scope 967 | 968 | The licenses granted in this Section 2 are the only rights granted under 969 | this License. No additional rights or licenses will be implied from the 970 | distribution or licensing of Covered Software under this License. 971 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 972 | Contributor: 973 | 974 | a. for any code that a Contributor has removed from Covered Software; or 975 | 976 | b. for infringements caused by: (i) Your and any other third party's 977 | modifications of Covered Software, or (ii) the combination of its 978 | Contributions with other software (except as part of its Contributor 979 | Version); or 980 | 981 | c. under Patent Claims infringed by Covered Software in the absence of 982 | its Contributions. 983 | 984 | This License does not grant any rights in the trademarks, service marks, 985 | or logos of any Contributor (except as may be necessary to comply with 986 | the notice requirements in Section 3.4). 987 | 988 | 2.4. Subsequent Licenses 989 | 990 | No Contributor makes additional grants as a result of Your choice to 991 | distribute the Covered Software under a subsequent version of this 992 | License (see Section 10.2) or under the terms of a Secondary License (if 993 | permitted under the terms of Section 3.3). 994 | 995 | 2.5. Representation 996 | 997 | Each Contributor represents that the Contributor believes its 998 | Contributions are its original creation(s) or it has sufficient rights to 999 | grant the rights to its Contributions conveyed by this License. 1000 | 1001 | 2.6. Fair Use 1002 | 1003 | This License is not intended to limit any rights You have under 1004 | applicable copyright doctrines of fair use, fair dealing, or other 1005 | equivalents. 1006 | 1007 | 2.7. Conditions 1008 | 1009 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in 1010 | Section 2.1. 1011 | 1012 | 1013 | 3. Responsibilities 1014 | 1015 | 3.1. Distribution of Source Form 1016 | 1017 | All distribution of Covered Software in Source Code Form, including any 1018 | Modifications that You create or to which You contribute, must be under 1019 | the terms of this License. You must inform recipients that the Source 1020 | Code Form of the Covered Software is governed by the terms of this 1021 | License, and how they can obtain a copy of this License. You may not 1022 | attempt to alter or restrict the recipients' rights in the Source Code 1023 | Form. 1024 | 1025 | 3.2. Distribution of Executable Form 1026 | 1027 | If You distribute Covered Software in Executable Form then: 1028 | 1029 | a. such Covered Software must also be made available in Source Code Form, 1030 | as described in Section 3.1, and You must inform recipients of the 1031 | Executable Form how they can obtain a copy of such Source Code Form by 1032 | reasonable means in a timely manner, at a charge no more than the cost 1033 | of distribution to the recipient; and 1034 | 1035 | b. You may distribute such Executable Form under the terms of this 1036 | License, or sublicense it under different terms, provided that the 1037 | license for the Executable Form does not attempt to limit or alter the 1038 | recipients' rights in the Source Code Form under this License. 1039 | 1040 | 3.3. Distribution of a Larger Work 1041 | 1042 | You may create and distribute a Larger Work under terms of Your choice, 1043 | provided that You also comply with the requirements of this License for 1044 | the Covered Software. If the Larger Work is a combination of Covered 1045 | Software with a work governed by one or more Secondary Licenses, and the 1046 | Covered Software is not Incompatible With Secondary Licenses, this 1047 | License permits You to additionally distribute such Covered Software 1048 | under the terms of such Secondary License(s), so that the recipient of 1049 | the Larger Work may, at their option, further distribute the Covered 1050 | Software under the terms of either this License or such Secondary 1051 | License(s). 1052 | 1053 | 3.4. Notices 1054 | 1055 | You may not remove or alter the substance of any license notices 1056 | (including copyright notices, patent notices, disclaimers of warranty, or 1057 | limitations of liability) contained within the Source Code Form of the 1058 | Covered Software, except that You may alter any license notices to the 1059 | extent required to remedy known factual inaccuracies. 1060 | 1061 | 3.5. Application of Additional Terms 1062 | 1063 | You may choose to offer, and to charge a fee for, warranty, support, 1064 | indemnity or liability obligations to one or more recipients of Covered 1065 | Software. However, You may do so only on Your own behalf, and not on 1066 | behalf of any Contributor. You must make it absolutely clear that any 1067 | such warranty, support, indemnity, or liability obligation is offered by 1068 | You alone, and You hereby agree to indemnify every Contributor for any 1069 | liability incurred by such Contributor as a result of warranty, support, 1070 | indemnity or liability terms You offer. You may include additional 1071 | disclaimers of warranty and limitations of liability specific to any 1072 | jurisdiction. 1073 | 1074 | 4. Inability to Comply Due to Statute or Regulation 1075 | 1076 | If it is impossible for You to comply with any of the terms of this License 1077 | with respect to some or all of the Covered Software due to statute, 1078 | judicial order, or regulation then You must: (a) comply with the terms of 1079 | this License to the maximum extent possible; and (b) describe the 1080 | limitations and the code they affect. Such description must be placed in a 1081 | text file included with all distributions of the Covered Software under 1082 | this License. Except to the extent prohibited by statute or regulation, 1083 | such description must be sufficiently detailed for a recipient of ordinary 1084 | skill to be able to understand it. 1085 | 1086 | 5. Termination 1087 | 1088 | 5.1. The rights granted under this License will terminate automatically if You 1089 | fail to comply with any of its terms. However, if You become compliant, 1090 | then the rights granted under this License from a particular Contributor 1091 | are reinstated (a) provisionally, unless and until such Contributor 1092 | explicitly and finally terminates Your grants, and (b) on an ongoing 1093 | basis, if such Contributor fails to notify You of the non-compliance by 1094 | some reasonable means prior to 60 days after You have come back into 1095 | compliance. Moreover, Your grants from a particular Contributor are 1096 | reinstated on an ongoing basis if such Contributor notifies You of the 1097 | non-compliance by some reasonable means, this is the first time You have 1098 | received notice of non-compliance with this License from such 1099 | Contributor, and You become compliant prior to 30 days after Your receipt 1100 | of the notice. 1101 | 1102 | 5.2. If You initiate litigation against any entity by asserting a patent 1103 | infringement claim (excluding declaratory judgment actions, 1104 | counter-claims, and cross-claims) alleging that a Contributor Version 1105 | directly or indirectly infringes any patent, then the rights granted to 1106 | You by any and all Contributors for the Covered Software under Section 1107 | 2.1 of this License shall terminate. 1108 | 1109 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user 1110 | license agreements (excluding distributors and resellers) which have been 1111 | validly granted by You or Your distributors under this License prior to 1112 | termination shall survive termination. 1113 | 1114 | 6. Disclaimer of Warranty 1115 | 1116 | Covered Software is provided under this License on an "as is" basis, 1117 | without warranty of any kind, either expressed, implied, or statutory, 1118 | including, without limitation, warranties that the Covered Software is free 1119 | of defects, merchantable, fit for a particular purpose or non-infringing. 1120 | The entire risk as to the quality and performance of the Covered Software 1121 | is with You. Should any Covered Software prove defective in any respect, 1122 | You (not any Contributor) assume the cost of any necessary servicing, 1123 | repair, or correction. This disclaimer of warranty constitutes an essential 1124 | part of this License. No use of any Covered Software is authorized under 1125 | this License except under this disclaimer. 1126 | 1127 | 7. Limitation of Liability 1128 | 1129 | Under no circumstances and under no legal theory, whether tort (including 1130 | negligence), contract, or otherwise, shall any Contributor, or anyone who 1131 | distributes Covered Software as permitted above, be liable to You for any 1132 | direct, indirect, special, incidental, or consequential damages of any 1133 | character including, without limitation, damages for lost profits, loss of 1134 | goodwill, work stoppage, computer failure or malfunction, or any and all 1135 | other commercial damages or losses, even if such party shall have been 1136 | informed of the possibility of such damages. This limitation of liability 1137 | shall not apply to liability for death or personal injury resulting from 1138 | such party's negligence to the extent applicable law prohibits such 1139 | limitation. Some jurisdictions do not allow the exclusion or limitation of 1140 | incidental or consequential damages, so this exclusion and limitation may 1141 | not apply to You. 1142 | 1143 | 8. Litigation 1144 | 1145 | Any litigation relating to this License may be brought only in the courts 1146 | of a jurisdiction where the defendant maintains its principal place of 1147 | business and such litigation shall be governed by laws of that 1148 | jurisdiction, without reference to its conflict-of-law provisions. Nothing 1149 | in this Section shall prevent a party's ability to bring cross-claims or 1150 | counter-claims. 1151 | 1152 | 9. Miscellaneous 1153 | 1154 | This License represents the complete agreement concerning the subject 1155 | matter hereof. If any provision of this License is held to be 1156 | unenforceable, such provision shall be reformed only to the extent 1157 | necessary to make it enforceable. Any law or regulation which provides that 1158 | the language of a contract shall be construed against the drafter shall not 1159 | be used to construe this License against a Contributor. 1160 | 1161 | 1162 | 10. Versions of the License 1163 | 1164 | 10.1. New Versions 1165 | 1166 | Mozilla Foundation is the license steward. Except as provided in Section 1167 | 10.3, no one other than the license steward has the right to modify or 1168 | publish new versions of this License. Each version will be given a 1169 | distinguishing version number. 1170 | 1171 | 10.2. Effect of New Versions 1172 | 1173 | You may distribute the Covered Software under the terms of the version 1174 | of the License under which You originally received the Covered Software, 1175 | or under the terms of any subsequent version published by the license 1176 | steward. 1177 | 1178 | 10.3. Modified Versions 1179 | 1180 | If you create software not governed by this License, and you want to 1181 | create a new license for such software, you may create and use a 1182 | modified version of this License if you rename the license and remove 1183 | any references to the name of the license steward (except to note that 1184 | such modified license differs from this License). 1185 | 1186 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 1187 | Licenses If You choose to distribute Source Code Form that is 1188 | Incompatible With Secondary Licenses under the terms of this version of 1189 | the License, the notice described in Exhibit B of this License must be 1190 | attached. 1191 | 1192 | Exhibit A - Source Code Form License Notice 1193 | 1194 | This Source Code Form is subject to the 1195 | terms of the Mozilla Public License, v. 1196 | 2.0. If a copy of the MPL was not 1197 | distributed with this file, You can 1198 | obtain one at 1199 | http://mozilla.org/MPL/2.0/. 1200 | 1201 | If it is not possible or desirable to put the notice in a particular file, 1202 | then You may include the notice in a location (such as a LICENSE file in a 1203 | relevant directory) where a recipient would be likely to look for such a 1204 | notice. 1205 | 1206 | You may add additional accurate notices of copyright ownership. 1207 | 1208 | Exhibit B - "Incompatible With Secondary Licenses" Notice 1209 | 1210 | This Source Code Form is "Incompatible 1211 | With Secondary Licenses", as defined by 1212 | the Mozilla Public License, v. 2.0. 1213 | 1214 | ================================================================ 1215 | 1216 | github.com/jung-kurt/gofpdf 1217 | https://github.com/jung-kurt/gofpdf 1218 | ---------------------------------------------------------------- 1219 | MIT License 1220 | 1221 | Copyright (c) 2017 Kurt Jung and contributors acknowledged in the documentation 1222 | 1223 | Permission is hereby granted, free of charge, to any person obtaining a copy 1224 | of this software and associated documentation files (the "Software"), to deal 1225 | in the Software without restriction, including without limitation the rights 1226 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1227 | copies of the Software, and to permit persons to whom the Software is 1228 | furnished to do so, subject to the following conditions: 1229 | 1230 | The above copyright notice and this permission notice shall be included in all 1231 | copies or substantial portions of the Software. 1232 | 1233 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1234 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1235 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1236 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1237 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1238 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1239 | SOFTWARE. 1240 | 1241 | ================================================================ 1242 | 1243 | github.com/lusis/go-slackbot 1244 | https://github.com/lusis/go-slackbot 1245 | ---------------------------------------------------------------- 1246 | The MIT License (MIT) 1247 | 1248 | Copyright (c) 2016 Robots & Pencils 1249 | 1250 | Permission is hereby granted, free of charge, to any person obtaining a copy 1251 | of this software and associated documentation files (the "Software"), to deal 1252 | in the Software without restriction, including without limitation the rights 1253 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1254 | copies of the Software, and to permit persons to whom the Software is 1255 | furnished to do so, subject to the following conditions: 1256 | 1257 | The above copyright notice and this permission notice shall be included in all 1258 | copies or substantial portions of the Software. 1259 | 1260 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1261 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1262 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1263 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1264 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1265 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1266 | SOFTWARE. 1267 | 1268 | ================================================================ 1269 | 1270 | github.com/lusis/slack-test 1271 | https://github.com/lusis/slack-test 1272 | ---------------------------------------------------------------- 1273 | Copyright 2018 @lusis 1274 | 1275 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 1276 | 1277 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 1278 | 1279 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1280 | 1281 | ================================================================ 1282 | 1283 | github.com/nlopes/slack 1284 | https://github.com/nlopes/slack 1285 | ---------------------------------------------------------------- 1286 | Copyright (c) 2015, Norberto Lopes 1287 | All rights reserved. 1288 | 1289 | Redistribution and use in source and binary forms, with or without modification, 1290 | are permitted provided that the following conditions are met: 1291 | 1292 | 1. Redistributions of source code must retain the above copyright notice, this 1293 | list of conditions and the following disclaimer. 1294 | 1295 | 2. Redistributions in binary form must reproduce the above copyright notice, 1296 | this list of conditions and the following disclaimer in the documentation and/or 1297 | other materials provided with the distribution. 1298 | 1299 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 1300 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1301 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1302 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 1303 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 1304 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 1305 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 1306 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1307 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1308 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1309 | 1310 | ================================================================ 1311 | 1312 | github.com/pkg/errors 1313 | https://github.com/pkg/errors 1314 | ---------------------------------------------------------------- 1315 | Copyright (c) 2015, Dave Cheney 1316 | All rights reserved. 1317 | 1318 | Redistribution and use in source and binary forms, with or without 1319 | modification, are permitted provided that the following conditions are met: 1320 | 1321 | * Redistributions of source code must retain the above copyright notice, this 1322 | list of conditions and the following disclaimer. 1323 | 1324 | * Redistributions in binary form must reproduce the above copyright notice, 1325 | this list of conditions and the following disclaimer in the documentation 1326 | and/or other materials provided with the distribution. 1327 | 1328 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 1329 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1330 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1331 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 1332 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1333 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 1334 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 1335 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1336 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1337 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1338 | 1339 | ================================================================ 1340 | 1341 | github.com/pmezard/go-difflib 1342 | https://github.com/pmezard/go-difflib 1343 | ---------------------------------------------------------------- 1344 | Copyright (c) 2013, Patrick Mezard 1345 | All rights reserved. 1346 | 1347 | Redistribution and use in source and binary forms, with or without 1348 | modification, are permitted provided that the following conditions are 1349 | met: 1350 | 1351 | Redistributions of source code must retain the above copyright 1352 | notice, this list of conditions and the following disclaimer. 1353 | Redistributions in binary form must reproduce the above copyright 1354 | notice, this list of conditions and the following disclaimer in the 1355 | documentation and/or other materials provided with the distribution. 1356 | The names of its contributors may not be used to endorse or promote 1357 | products derived from this software without specific prior written 1358 | permission. 1359 | 1360 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 1361 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1362 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 1363 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1364 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1365 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 1366 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 1367 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1368 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 1369 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 1370 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1371 | 1372 | ================================================================ 1373 | 1374 | github.com/stretchr/testify 1375 | https://github.com/stretchr/testify 1376 | ---------------------------------------------------------------- 1377 | MIT License 1378 | 1379 | Copyright (c) 2012-2018 Mat Ryer and Tyler Bunnell 1380 | 1381 | Permission is hereby granted, free of charge, to any person obtaining a copy 1382 | of this software and associated documentation files (the "Software"), to deal 1383 | in the Software without restriction, including without limitation the rights 1384 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1385 | copies of the Software, and to permit persons to whom the Software is 1386 | furnished to do so, subject to the following conditions: 1387 | 1388 | The above copyright notice and this permission notice shall be included in all 1389 | copies or substantial portions of the Software. 1390 | 1391 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1392 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1393 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1394 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1395 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1396 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1397 | SOFTWARE. 1398 | 1399 | ================================================================ 1400 | 1401 | go.opencensus.io 1402 | https://go.opencensus.io 1403 | ---------------------------------------------------------------- 1404 | 1405 | Apache License 1406 | Version 2.0, January 2004 1407 | http://www.apache.org/licenses/ 1408 | 1409 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1410 | 1411 | 1. Definitions. 1412 | 1413 | "License" shall mean the terms and conditions for use, reproduction, 1414 | and distribution as defined by Sections 1 through 9 of this document. 1415 | 1416 | "Licensor" shall mean the copyright owner or entity authorized by 1417 | the copyright owner that is granting the License. 1418 | 1419 | "Legal Entity" shall mean the union of the acting entity and all 1420 | other entities that control, are controlled by, or are under common 1421 | control with that entity. For the purposes of this definition, 1422 | "control" means (i) the power, direct or indirect, to cause the 1423 | direction or management of such entity, whether by contract or 1424 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 1425 | outstanding shares, or (iii) beneficial ownership of such entity. 1426 | 1427 | "You" (or "Your") shall mean an individual or Legal Entity 1428 | exercising permissions granted by this License. 1429 | 1430 | "Source" form shall mean the preferred form for making modifications, 1431 | including but not limited to software source code, documentation 1432 | source, and configuration files. 1433 | 1434 | "Object" form shall mean any form resulting from mechanical 1435 | transformation or translation of a Source form, including but 1436 | not limited to compiled object code, generated documentation, 1437 | and conversions to other media types. 1438 | 1439 | "Work" shall mean the work of authorship, whether in Source or 1440 | Object form, made available under the License, as indicated by a 1441 | copyright notice that is included in or attached to the work 1442 | (an example is provided in the Appendix below). 1443 | 1444 | "Derivative Works" shall mean any work, whether in Source or Object 1445 | form, that is based on (or derived from) the Work and for which the 1446 | editorial revisions, annotations, elaborations, or other modifications 1447 | represent, as a whole, an original work of authorship. For the purposes 1448 | of this License, Derivative Works shall not include works that remain 1449 | separable from, or merely link (or bind by name) to the interfaces of, 1450 | the Work and Derivative Works thereof. 1451 | 1452 | "Contribution" shall mean any work of authorship, including 1453 | the original version of the Work and any modifications or additions 1454 | to that Work or Derivative Works thereof, that is intentionally 1455 | submitted to Licensor for inclusion in the Work by the copyright owner 1456 | or by an individual or Legal Entity authorized to submit on behalf of 1457 | the copyright owner. For the purposes of this definition, "submitted" 1458 | means any form of electronic, verbal, or written communication sent 1459 | to the Licensor or its representatives, including but not limited to 1460 | communication on electronic mailing lists, source code control systems, 1461 | and issue tracking systems that are managed by, or on behalf of, the 1462 | Licensor for the purpose of discussing and improving the Work, but 1463 | excluding communication that is conspicuously marked or otherwise 1464 | designated in writing by the copyright owner as "Not a Contribution." 1465 | 1466 | "Contributor" shall mean Licensor and any individual or Legal Entity 1467 | on behalf of whom a Contribution has been received by Licensor and 1468 | subsequently incorporated within the Work. 1469 | 1470 | 2. Grant of Copyright License. Subject to the terms and conditions of 1471 | this License, each Contributor hereby grants to You a perpetual, 1472 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1473 | copyright license to reproduce, prepare Derivative Works of, 1474 | publicly display, publicly perform, sublicense, and distribute the 1475 | Work and such Derivative Works in Source or Object form. 1476 | 1477 | 3. Grant of Patent License. Subject to the terms and conditions of 1478 | this License, each Contributor hereby grants to You a perpetual, 1479 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 1480 | (except as stated in this section) patent license to make, have made, 1481 | use, offer to sell, sell, import, and otherwise transfer the Work, 1482 | where such license applies only to those patent claims licensable 1483 | by such Contributor that are necessarily infringed by their 1484 | Contribution(s) alone or by combination of their Contribution(s) 1485 | with the Work to which such Contribution(s) was submitted. If You 1486 | institute patent litigation against any entity (including a 1487 | cross-claim or counterclaim in a lawsuit) alleging that the Work 1488 | or a Contribution incorporated within the Work constitutes direct 1489 | or contributory patent infringement, then any patent licenses 1490 | granted to You under this License for that Work shall terminate 1491 | as of the date such litigation is filed. 1492 | 1493 | 4. Redistribution. You may reproduce and distribute copies of the 1494 | Work or Derivative Works thereof in any medium, with or without 1495 | modifications, and in Source or Object form, provided that You 1496 | meet the following conditions: 1497 | 1498 | (a) You must give any other recipients of the Work or 1499 | Derivative Works a copy of this License; and 1500 | 1501 | (b) You must cause any modified files to carry prominent notices 1502 | stating that You changed the files; and 1503 | 1504 | (c) You must retain, in the Source form of any Derivative Works 1505 | that You distribute, all copyright, patent, trademark, and 1506 | attribution notices from the Source form of the Work, 1507 | excluding those notices that do not pertain to any part of 1508 | the Derivative Works; and 1509 | 1510 | (d) If the Work includes a "NOTICE" text file as part of its 1511 | distribution, then any Derivative Works that You distribute must 1512 | include a readable copy of the attribution notices contained 1513 | within such NOTICE file, excluding those notices that do not 1514 | pertain to any part of the Derivative Works, in at least one 1515 | of the following places: within a NOTICE text file distributed 1516 | as part of the Derivative Works; within the Source form or 1517 | documentation, if provided along with the Derivative Works; or, 1518 | within a display generated by the Derivative Works, if and 1519 | wherever such third-party notices normally appear. The contents 1520 | of the NOTICE file are for informational purposes only and 1521 | do not modify the License. You may add Your own attribution 1522 | notices within Derivative Works that You distribute, alongside 1523 | or as an addendum to the NOTICE text from the Work, provided 1524 | that such additional attribution notices cannot be construed 1525 | as modifying the License. 1526 | 1527 | You may add Your own copyright statement to Your modifications and 1528 | may provide additional or different license terms and conditions 1529 | for use, reproduction, or distribution of Your modifications, or 1530 | for any such Derivative Works as a whole, provided Your use, 1531 | reproduction, and distribution of the Work otherwise complies with 1532 | the conditions stated in this License. 1533 | 1534 | 5. Submission of Contributions. Unless You explicitly state otherwise, 1535 | any Contribution intentionally submitted for inclusion in the Work 1536 | by You to the Licensor shall be under the terms and conditions of 1537 | this License, without any additional terms or conditions. 1538 | Notwithstanding the above, nothing herein shall supersede or modify 1539 | the terms of any separate license agreement you may have executed 1540 | with Licensor regarding such Contributions. 1541 | 1542 | 6. Trademarks. This License does not grant permission to use the trade 1543 | names, trademarks, service marks, or product names of the Licensor, 1544 | except as required for reasonable and customary use in describing the 1545 | origin of the Work and reproducing the content of the NOTICE file. 1546 | 1547 | 7. Disclaimer of Warranty. Unless required by applicable law or 1548 | agreed to in writing, Licensor provides the Work (and each 1549 | Contributor provides its Contributions) on an "AS IS" BASIS, 1550 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1551 | implied, including, without limitation, any warranties or conditions 1552 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1553 | PARTICULAR PURPOSE. You are solely responsible for determining the 1554 | appropriateness of using or redistributing the Work and assume any 1555 | risks associated with Your exercise of permissions under this License. 1556 | 1557 | 8. Limitation of Liability. In no event and under no legal theory, 1558 | whether in tort (including negligence), contract, or otherwise, 1559 | unless required by applicable law (such as deliberate and grossly 1560 | negligent acts) or agreed to in writing, shall any Contributor be 1561 | liable to You for damages, including any direct, indirect, special, 1562 | incidental, or consequential damages of any character arising as a 1563 | result of this License or out of the use or inability to use the 1564 | Work (including but not limited to damages for loss of goodwill, 1565 | work stoppage, computer failure or malfunction, or any and all 1566 | other commercial damages or losses), even if such Contributor 1567 | has been advised of the possibility of such damages. 1568 | 1569 | 9. Accepting Warranty or Additional Liability. While redistributing 1570 | the Work or Derivative Works thereof, You may choose to offer, 1571 | and charge a fee for, acceptance of support, warranty, indemnity, 1572 | or other liability obligations and/or rights consistent with this 1573 | License. However, in accepting such obligations, You may act only 1574 | on Your own behalf and on Your sole responsibility, not on behalf 1575 | of any other Contributor, and only if You agree to indemnify, 1576 | defend, and hold each Contributor harmless for any liability 1577 | incurred by, or claims asserted against, such Contributor by reason 1578 | of your accepting any such warranty or additional liability. 1579 | 1580 | END OF TERMS AND CONDITIONS 1581 | 1582 | APPENDIX: How to apply the Apache License to your work. 1583 | 1584 | To apply the Apache License to your work, attach the following 1585 | boilerplate notice, with the fields enclosed by brackets "[]" 1586 | replaced with your own identifying information. (Don't include 1587 | the brackets!) The text should be enclosed in the appropriate 1588 | comment syntax for the file format. We also recommend that a 1589 | file or class name and description of purpose be included on the 1590 | same "printed page" as the copyright notice for easier 1591 | identification within third-party archives. 1592 | 1593 | Copyright [yyyy] [name of copyright owner] 1594 | 1595 | Licensed under the Apache License, Version 2.0 (the "License"); 1596 | you may not use this file except in compliance with the License. 1597 | You may obtain a copy of the License at 1598 | 1599 | http://www.apache.org/licenses/LICENSE-2.0 1600 | 1601 | Unless required by applicable law or agreed to in writing, software 1602 | distributed under the License is distributed on an "AS IS" BASIS, 1603 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1604 | See the License for the specific language governing permissions and 1605 | limitations under the License. 1606 | ================================================================ 1607 | 1608 | golang.org/x/exp 1609 | https://golang.org/x/exp 1610 | ---------------------------------------------------------------- 1611 | Copyright (c) 2009 The Go Authors. All rights reserved. 1612 | 1613 | Redistribution and use in source and binary forms, with or without 1614 | modification, are permitted provided that the following conditions are 1615 | met: 1616 | 1617 | * Redistributions of source code must retain the above copyright 1618 | notice, this list of conditions and the following disclaimer. 1619 | * Redistributions in binary form must reproduce the above 1620 | copyright notice, this list of conditions and the following disclaimer 1621 | in the documentation and/or other materials provided with the 1622 | distribution. 1623 | * Neither the name of Google Inc. nor the names of its 1624 | contributors may be used to endorse or promote products derived from 1625 | this software without specific prior written permission. 1626 | 1627 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1628 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1629 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1630 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1631 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1632 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1633 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1634 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1635 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1636 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1637 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1638 | 1639 | ================================================================ 1640 | 1641 | golang.org/x/exp 1642 | https://golang.org/x/exp 1643 | ---------------------------------------------------------------- 1644 | Copyright (c) 2009 The Go Authors. All rights reserved. 1645 | 1646 | Redistribution and use in source and binary forms, with or without 1647 | modification, are permitted provided that the following conditions are 1648 | met: 1649 | 1650 | * Redistributions of source code must retain the above copyright 1651 | notice, this list of conditions and the following disclaimer. 1652 | * Redistributions in binary form must reproduce the above 1653 | copyright notice, this list of conditions and the following disclaimer 1654 | in the documentation and/or other materials provided with the 1655 | distribution. 1656 | * Neither the name of Google Inc. nor the names of its 1657 | contributors may be used to endorse or promote products derived from 1658 | this software without specific prior written permission. 1659 | 1660 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1661 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1662 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1663 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1664 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1665 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1666 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1667 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1668 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1669 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1670 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1671 | 1672 | ================================================================ 1673 | 1674 | golang.org/x/image 1675 | https://golang.org/x/image 1676 | ---------------------------------------------------------------- 1677 | Copyright (c) 2009 The Go Authors. All rights reserved. 1678 | 1679 | Redistribution and use in source and binary forms, with or without 1680 | modification, are permitted provided that the following conditions are 1681 | met: 1682 | 1683 | * Redistributions of source code must retain the above copyright 1684 | notice, this list of conditions and the following disclaimer. 1685 | * Redistributions in binary form must reproduce the above 1686 | copyright notice, this list of conditions and the following disclaimer 1687 | in the documentation and/or other materials provided with the 1688 | distribution. 1689 | * Neither the name of Google Inc. nor the names of its 1690 | contributors may be used to endorse or promote products derived from 1691 | this software without specific prior written permission. 1692 | 1693 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1694 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1695 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1696 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1697 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1698 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1699 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1700 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1701 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1702 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1703 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1704 | 1705 | ================================================================ 1706 | 1707 | golang.org/x/image 1708 | https://golang.org/x/image 1709 | ---------------------------------------------------------------- 1710 | Copyright (c) 2009 The Go Authors. All rights reserved. 1711 | 1712 | Redistribution and use in source and binary forms, with or without 1713 | modification, are permitted provided that the following conditions are 1714 | met: 1715 | 1716 | * Redistributions of source code must retain the above copyright 1717 | notice, this list of conditions and the following disclaimer. 1718 | * Redistributions in binary form must reproduce the above 1719 | copyright notice, this list of conditions and the following disclaimer 1720 | in the documentation and/or other materials provided with the 1721 | distribution. 1722 | * Neither the name of Google Inc. nor the names of its 1723 | contributors may be used to endorse or promote products derived from 1724 | this software without specific prior written permission. 1725 | 1726 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1727 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1728 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1729 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1730 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1731 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1732 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1733 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1734 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1735 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1736 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1737 | 1738 | ================================================================ 1739 | 1740 | golang.org/x/net 1741 | https://golang.org/x/net 1742 | ---------------------------------------------------------------- 1743 | Copyright (c) 2009 The Go Authors. All rights reserved. 1744 | 1745 | Redistribution and use in source and binary forms, with or without 1746 | modification, are permitted provided that the following conditions are 1747 | met: 1748 | 1749 | * Redistributions of source code must retain the above copyright 1750 | notice, this list of conditions and the following disclaimer. 1751 | * Redistributions in binary form must reproduce the above 1752 | copyright notice, this list of conditions and the following disclaimer 1753 | in the documentation and/or other materials provided with the 1754 | distribution. 1755 | * Neither the name of Google Inc. nor the names of its 1756 | contributors may be used to endorse or promote products derived from 1757 | this software without specific prior written permission. 1758 | 1759 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1760 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1761 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1762 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1763 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1764 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1765 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1766 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1767 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1768 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1769 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1770 | 1771 | ================================================================ 1772 | 1773 | golang.org/x/oauth2 1774 | https://golang.org/x/oauth2 1775 | ---------------------------------------------------------------- 1776 | Copyright (c) 2009 The Go Authors. All rights reserved. 1777 | 1778 | Redistribution and use in source and binary forms, with or without 1779 | modification, are permitted provided that the following conditions are 1780 | met: 1781 | 1782 | * Redistributions of source code must retain the above copyright 1783 | notice, this list of conditions and the following disclaimer. 1784 | * Redistributions in binary form must reproduce the above 1785 | copyright notice, this list of conditions and the following disclaimer 1786 | in the documentation and/or other materials provided with the 1787 | distribution. 1788 | * Neither the name of Google Inc. nor the names of its 1789 | contributors may be used to endorse or promote products derived from 1790 | this software without specific prior written permission. 1791 | 1792 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1793 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1794 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1795 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1796 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1797 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1798 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1799 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1800 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1801 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1802 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1803 | 1804 | ================================================================ 1805 | 1806 | golang.org/x/sync 1807 | https://golang.org/x/sync 1808 | ---------------------------------------------------------------- 1809 | Copyright (c) 2009 The Go Authors. All rights reserved. 1810 | 1811 | Redistribution and use in source and binary forms, with or without 1812 | modification, are permitted provided that the following conditions are 1813 | met: 1814 | 1815 | * Redistributions of source code must retain the above copyright 1816 | notice, this list of conditions and the following disclaimer. 1817 | * Redistributions in binary form must reproduce the above 1818 | copyright notice, this list of conditions and the following disclaimer 1819 | in the documentation and/or other materials provided with the 1820 | distribution. 1821 | * Neither the name of Google Inc. nor the names of its 1822 | contributors may be used to endorse or promote products derived from 1823 | this software without specific prior written permission. 1824 | 1825 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1826 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1827 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1828 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1829 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1830 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1831 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1832 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1833 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1834 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1835 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1836 | 1837 | ================================================================ 1838 | 1839 | golang.org/x/sys 1840 | https://golang.org/x/sys 1841 | ---------------------------------------------------------------- 1842 | Copyright (c) 2009 The Go Authors. All rights reserved. 1843 | 1844 | Redistribution and use in source and binary forms, with or without 1845 | modification, are permitted provided that the following conditions are 1846 | met: 1847 | 1848 | * Redistributions of source code must retain the above copyright 1849 | notice, this list of conditions and the following disclaimer. 1850 | * Redistributions in binary form must reproduce the above 1851 | copyright notice, this list of conditions and the following disclaimer 1852 | in the documentation and/or other materials provided with the 1853 | distribution. 1854 | * Neither the name of Google Inc. nor the names of its 1855 | contributors may be used to endorse or promote products derived from 1856 | this software without specific prior written permission. 1857 | 1858 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1859 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1860 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1861 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1862 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1863 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1864 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1865 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1866 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1867 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1868 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1869 | 1870 | ================================================================ 1871 | 1872 | golang.org/x/sys 1873 | https://golang.org/x/sys 1874 | ---------------------------------------------------------------- 1875 | Copyright (c) 2009 The Go Authors. All rights reserved. 1876 | 1877 | Redistribution and use in source and binary forms, with or without 1878 | modification, are permitted provided that the following conditions are 1879 | met: 1880 | 1881 | * Redistributions of source code must retain the above copyright 1882 | notice, this list of conditions and the following disclaimer. 1883 | * Redistributions in binary form must reproduce the above 1884 | copyright notice, this list of conditions and the following disclaimer 1885 | in the documentation and/or other materials provided with the 1886 | distribution. 1887 | * Neither the name of Google Inc. nor the names of its 1888 | contributors may be used to endorse or promote products derived from 1889 | this software without specific prior written permission. 1890 | 1891 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1892 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1893 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1894 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1895 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1896 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1897 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1898 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1899 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1900 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1901 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1902 | 1903 | ================================================================ 1904 | 1905 | golang.org/x/text 1906 | https://golang.org/x/text 1907 | ---------------------------------------------------------------- 1908 | Copyright (c) 2009 The Go Authors. All rights reserved. 1909 | 1910 | Redistribution and use in source and binary forms, with or without 1911 | modification, are permitted provided that the following conditions are 1912 | met: 1913 | 1914 | * Redistributions of source code must retain the above copyright 1915 | notice, this list of conditions and the following disclaimer. 1916 | * Redistributions in binary form must reproduce the above 1917 | copyright notice, this list of conditions and the following disclaimer 1918 | in the documentation and/or other materials provided with the 1919 | distribution. 1920 | * Neither the name of Google Inc. nor the names of its 1921 | contributors may be used to endorse or promote products derived from 1922 | this software without specific prior written permission. 1923 | 1924 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1925 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1926 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1927 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1928 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1929 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1930 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1931 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1932 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1933 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1934 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1935 | 1936 | ================================================================ 1937 | 1938 | gonum.org/v1/gonum 1939 | https://gonum.org/v1/gonum 1940 | ---------------------------------------------------------------- 1941 | Copyright ©2013 The Gonum Authors. All rights reserved. 1942 | 1943 | Redistribution and use in source and binary forms, with or without 1944 | modification, are permitted provided that the following conditions are met: 1945 | * Redistributions of source code must retain the above copyright 1946 | notice, this list of conditions and the following disclaimer. 1947 | * Redistributions in binary form must reproduce the above copyright 1948 | notice, this list of conditions and the following disclaimer in the 1949 | documentation and/or other materials provided with the distribution. 1950 | * Neither the name of the gonum project nor the names of its authors and 1951 | contributors may be used to endorse or promote products derived from this 1952 | software without specific prior written permission. 1953 | 1954 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 1955 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1956 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1957 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 1958 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1959 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 1960 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 1961 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1962 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1963 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1964 | ================================================================ 1965 | 1966 | gonum.org/v1/gonum 1967 | https://gonum.org/v1/gonum 1968 | ---------------------------------------------------------------- 1969 | Copyright ©2013 The Gonum Authors. All rights reserved. 1970 | 1971 | Redistribution and use in source and binary forms, with or without 1972 | modification, are permitted provided that the following conditions are met: 1973 | * Redistributions of source code must retain the above copyright 1974 | notice, this list of conditions and the following disclaimer. 1975 | * Redistributions in binary form must reproduce the above copyright 1976 | notice, this list of conditions and the following disclaimer in the 1977 | documentation and/or other materials provided with the distribution. 1978 | * Neither the name of the gonum project nor the names of its authors and 1979 | contributors may be used to endorse or promote products derived from this 1980 | software without specific prior written permission. 1981 | 1982 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 1983 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1984 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 1985 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 1986 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1987 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 1988 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 1989 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 1990 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1991 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1992 | ================================================================ 1993 | 1994 | gonum.org/v1/netlib 1995 | https://gonum.org/v1/netlib 1996 | ---------------------------------------------------------------- 1997 | Copyright ©2013 The gonum Authors. All rights reserved. 1998 | 1999 | Redistribution and use in source and binary forms, with or without 2000 | modification, are permitted provided that the following conditions are met: 2001 | * Redistributions of source code must retain the above copyright 2002 | notice, this list of conditions and the following disclaimer. 2003 | * Redistributions in binary form must reproduce the above copyright 2004 | notice, this list of conditions and the following disclaimer in the 2005 | documentation and/or other materials provided with the distribution. 2006 | * Neither the name of the gonum project nor the names of its authors and 2007 | contributors may be used to endorse or promote products derived from this 2008 | software without specific prior written permission. 2009 | 2010 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 2011 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2012 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2013 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 2014 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2015 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2016 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 2017 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2018 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2019 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2020 | ================================================================ 2021 | 2022 | gonum.org/v1/plot 2023 | https://gonum.org/v1/plot 2024 | ---------------------------------------------------------------- 2025 | See the gonum LICENSE file at https://github.com/gonum/license. 2026 | 2027 | ================================================================ 2028 | 2029 | google.golang.org/api 2030 | https://google.golang.org/api 2031 | ---------------------------------------------------------------- 2032 | Copyright (c) 2011 Google Inc. All rights reserved. 2033 | 2034 | Redistribution and use in source and binary forms, with or without 2035 | modification, are permitted provided that the following conditions are 2036 | met: 2037 | 2038 | * Redistributions of source code must retain the above copyright 2039 | notice, this list of conditions and the following disclaimer. 2040 | * Redistributions in binary form must reproduce the above 2041 | copyright notice, this list of conditions and the following disclaimer 2042 | in the documentation and/or other materials provided with the 2043 | distribution. 2044 | * Neither the name of Google Inc. nor the names of its 2045 | contributors may be used to endorse or promote products derived from 2046 | this software without specific prior written permission. 2047 | 2048 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2049 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2050 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2051 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2052 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2053 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2054 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2055 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2056 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2057 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2058 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2059 | 2060 | ================================================================ 2061 | 2062 | google.golang.org/appengine 2063 | https://google.golang.org/appengine 2064 | ---------------------------------------------------------------- 2065 | 2066 | Apache License 2067 | Version 2.0, January 2004 2068 | http://www.apache.org/licenses/ 2069 | 2070 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 2071 | 2072 | 1. Definitions. 2073 | 2074 | "License" shall mean the terms and conditions for use, reproduction, 2075 | and distribution as defined by Sections 1 through 9 of this document. 2076 | 2077 | "Licensor" shall mean the copyright owner or entity authorized by 2078 | the copyright owner that is granting the License. 2079 | 2080 | "Legal Entity" shall mean the union of the acting entity and all 2081 | other entities that control, are controlled by, or are under common 2082 | control with that entity. For the purposes of this definition, 2083 | "control" means (i) the power, direct or indirect, to cause the 2084 | direction or management of such entity, whether by contract or 2085 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 2086 | outstanding shares, or (iii) beneficial ownership of such entity. 2087 | 2088 | "You" (or "Your") shall mean an individual or Legal Entity 2089 | exercising permissions granted by this License. 2090 | 2091 | "Source" form shall mean the preferred form for making modifications, 2092 | including but not limited to software source code, documentation 2093 | source, and configuration files. 2094 | 2095 | "Object" form shall mean any form resulting from mechanical 2096 | transformation or translation of a Source form, including but 2097 | not limited to compiled object code, generated documentation, 2098 | and conversions to other media types. 2099 | 2100 | "Work" shall mean the work of authorship, whether in Source or 2101 | Object form, made available under the License, as indicated by a 2102 | copyright notice that is included in or attached to the work 2103 | (an example is provided in the Appendix below). 2104 | 2105 | "Derivative Works" shall mean any work, whether in Source or Object 2106 | form, that is based on (or derived from) the Work and for which the 2107 | editorial revisions, annotations, elaborations, or other modifications 2108 | represent, as a whole, an original work of authorship. For the purposes 2109 | of this License, Derivative Works shall not include works that remain 2110 | separable from, or merely link (or bind by name) to the interfaces of, 2111 | the Work and Derivative Works thereof. 2112 | 2113 | "Contribution" shall mean any work of authorship, including 2114 | the original version of the Work and any modifications or additions 2115 | to that Work or Derivative Works thereof, that is intentionally 2116 | submitted to Licensor for inclusion in the Work by the copyright owner 2117 | or by an individual or Legal Entity authorized to submit on behalf of 2118 | the copyright owner. For the purposes of this definition, "submitted" 2119 | means any form of electronic, verbal, or written communication sent 2120 | to the Licensor or its representatives, including but not limited to 2121 | communication on electronic mailing lists, source code control systems, 2122 | and issue tracking systems that are managed by, or on behalf of, the 2123 | Licensor for the purpose of discussing and improving the Work, but 2124 | excluding communication that is conspicuously marked or otherwise 2125 | designated in writing by the copyright owner as "Not a Contribution." 2126 | 2127 | "Contributor" shall mean Licensor and any individual or Legal Entity 2128 | on behalf of whom a Contribution has been received by Licensor and 2129 | subsequently incorporated within the Work. 2130 | 2131 | 2. Grant of Copyright License. Subject to the terms and conditions of 2132 | this License, each Contributor hereby grants to You a perpetual, 2133 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2134 | copyright license to reproduce, prepare Derivative Works of, 2135 | publicly display, publicly perform, sublicense, and distribute the 2136 | Work and such Derivative Works in Source or Object form. 2137 | 2138 | 3. Grant of Patent License. Subject to the terms and conditions of 2139 | this License, each Contributor hereby grants to You a perpetual, 2140 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2141 | (except as stated in this section) patent license to make, have made, 2142 | use, offer to sell, sell, import, and otherwise transfer the Work, 2143 | where such license applies only to those patent claims licensable 2144 | by such Contributor that are necessarily infringed by their 2145 | Contribution(s) alone or by combination of their Contribution(s) 2146 | with the Work to which such Contribution(s) was submitted. If You 2147 | institute patent litigation against any entity (including a 2148 | cross-claim or counterclaim in a lawsuit) alleging that the Work 2149 | or a Contribution incorporated within the Work constitutes direct 2150 | or contributory patent infringement, then any patent licenses 2151 | granted to You under this License for that Work shall terminate 2152 | as of the date such litigation is filed. 2153 | 2154 | 4. Redistribution. You may reproduce and distribute copies of the 2155 | Work or Derivative Works thereof in any medium, with or without 2156 | modifications, and in Source or Object form, provided that You 2157 | meet the following conditions: 2158 | 2159 | (a) You must give any other recipients of the Work or 2160 | Derivative Works a copy of this License; and 2161 | 2162 | (b) You must cause any modified files to carry prominent notices 2163 | stating that You changed the files; and 2164 | 2165 | (c) You must retain, in the Source form of any Derivative Works 2166 | that You distribute, all copyright, patent, trademark, and 2167 | attribution notices from the Source form of the Work, 2168 | excluding those notices that do not pertain to any part of 2169 | the Derivative Works; and 2170 | 2171 | (d) If the Work includes a "NOTICE" text file as part of its 2172 | distribution, then any Derivative Works that You distribute must 2173 | include a readable copy of the attribution notices contained 2174 | within such NOTICE file, excluding those notices that do not 2175 | pertain to any part of the Derivative Works, in at least one 2176 | of the following places: within a NOTICE text file distributed 2177 | as part of the Derivative Works; within the Source form or 2178 | documentation, if provided along with the Derivative Works; or, 2179 | within a display generated by the Derivative Works, if and 2180 | wherever such third-party notices normally appear. The contents 2181 | of the NOTICE file are for informational purposes only and 2182 | do not modify the License. You may add Your own attribution 2183 | notices within Derivative Works that You distribute, alongside 2184 | or as an addendum to the NOTICE text from the Work, provided 2185 | that such additional attribution notices cannot be construed 2186 | as modifying the License. 2187 | 2188 | You may add Your own copyright statement to Your modifications and 2189 | may provide additional or different license terms and conditions 2190 | for use, reproduction, or distribution of Your modifications, or 2191 | for any such Derivative Works as a whole, provided Your use, 2192 | reproduction, and distribution of the Work otherwise complies with 2193 | the conditions stated in this License. 2194 | 2195 | 5. Submission of Contributions. Unless You explicitly state otherwise, 2196 | any Contribution intentionally submitted for inclusion in the Work 2197 | by You to the Licensor shall be under the terms and conditions of 2198 | this License, without any additional terms or conditions. 2199 | Notwithstanding the above, nothing herein shall supersede or modify 2200 | the terms of any separate license agreement you may have executed 2201 | with Licensor regarding such Contributions. 2202 | 2203 | 6. Trademarks. This License does not grant permission to use the trade 2204 | names, trademarks, service marks, or product names of the Licensor, 2205 | except as required for reasonable and customary use in describing the 2206 | origin of the Work and reproducing the content of the NOTICE file. 2207 | 2208 | 7. Disclaimer of Warranty. Unless required by applicable law or 2209 | agreed to in writing, Licensor provides the Work (and each 2210 | Contributor provides its Contributions) on an "AS IS" BASIS, 2211 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 2212 | implied, including, without limitation, any warranties or conditions 2213 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 2214 | PARTICULAR PURPOSE. You are solely responsible for determining the 2215 | appropriateness of using or redistributing the Work and assume any 2216 | risks associated with Your exercise of permissions under this License. 2217 | 2218 | 8. Limitation of Liability. In no event and under no legal theory, 2219 | whether in tort (including negligence), contract, or otherwise, 2220 | unless required by applicable law (such as deliberate and grossly 2221 | negligent acts) or agreed to in writing, shall any Contributor be 2222 | liable to You for damages, including any direct, indirect, special, 2223 | incidental, or consequential damages of any character arising as a 2224 | result of this License or out of the use or inability to use the 2225 | Work (including but not limited to damages for loss of goodwill, 2226 | work stoppage, computer failure or malfunction, or any and all 2227 | other commercial damages or losses), even if such Contributor 2228 | has been advised of the possibility of such damages. 2229 | 2230 | 9. Accepting Warranty or Additional Liability. While redistributing 2231 | the Work or Derivative Works thereof, You may choose to offer, 2232 | and charge a fee for, acceptance of support, warranty, indemnity, 2233 | or other liability obligations and/or rights consistent with this 2234 | License. However, in accepting such obligations, You may act only 2235 | on Your own behalf and on Your sole responsibility, not on behalf 2236 | of any other Contributor, and only if You agree to indemnify, 2237 | defend, and hold each Contributor harmless for any liability 2238 | incurred by, or claims asserted against, such Contributor by reason 2239 | of your accepting any such warranty or additional liability. 2240 | 2241 | END OF TERMS AND CONDITIONS 2242 | 2243 | APPENDIX: How to apply the Apache License to your work. 2244 | 2245 | To apply the Apache License to your work, attach the following 2246 | boilerplate notice, with the fields enclosed by brackets "[]" 2247 | replaced with your own identifying information. (Don't include 2248 | the brackets!) The text should be enclosed in the appropriate 2249 | comment syntax for the file format. We also recommend that a 2250 | file or class name and description of purpose be included on the 2251 | same "printed page" as the copyright notice for easier 2252 | identification within third-party archives. 2253 | 2254 | Copyright [yyyy] [name of copyright owner] 2255 | 2256 | Licensed under the Apache License, Version 2.0 (the "License"); 2257 | you may not use this file except in compliance with the License. 2258 | You may obtain a copy of the License at 2259 | 2260 | http://www.apache.org/licenses/LICENSE-2.0 2261 | 2262 | Unless required by applicable law or agreed to in writing, software 2263 | distributed under the License is distributed on an "AS IS" BASIS, 2264 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2265 | See the License for the specific language governing permissions and 2266 | limitations under the License. 2267 | 2268 | ================================================================ 2269 | 2270 | google.golang.org/genproto 2271 | https://google.golang.org/genproto 2272 | ---------------------------------------------------------------- 2273 | 2274 | Apache License 2275 | Version 2.0, January 2004 2276 | http://www.apache.org/licenses/ 2277 | 2278 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 2279 | 2280 | 1. Definitions. 2281 | 2282 | "License" shall mean the terms and conditions for use, reproduction, 2283 | and distribution as defined by Sections 1 through 9 of this document. 2284 | 2285 | "Licensor" shall mean the copyright owner or entity authorized by 2286 | the copyright owner that is granting the License. 2287 | 2288 | "Legal Entity" shall mean the union of the acting entity and all 2289 | other entities that control, are controlled by, or are under common 2290 | control with that entity. For the purposes of this definition, 2291 | "control" means (i) the power, direct or indirect, to cause the 2292 | direction or management of such entity, whether by contract or 2293 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 2294 | outstanding shares, or (iii) beneficial ownership of such entity. 2295 | 2296 | "You" (or "Your") shall mean an individual or Legal Entity 2297 | exercising permissions granted by this License. 2298 | 2299 | "Source" form shall mean the preferred form for making modifications, 2300 | including but not limited to software source code, documentation 2301 | source, and configuration files. 2302 | 2303 | "Object" form shall mean any form resulting from mechanical 2304 | transformation or translation of a Source form, including but 2305 | not limited to compiled object code, generated documentation, 2306 | and conversions to other media types. 2307 | 2308 | "Work" shall mean the work of authorship, whether in Source or 2309 | Object form, made available under the License, as indicated by a 2310 | copyright notice that is included in or attached to the work 2311 | (an example is provided in the Appendix below). 2312 | 2313 | "Derivative Works" shall mean any work, whether in Source or Object 2314 | form, that is based on (or derived from) the Work and for which the 2315 | editorial revisions, annotations, elaborations, or other modifications 2316 | represent, as a whole, an original work of authorship. For the purposes 2317 | of this License, Derivative Works shall not include works that remain 2318 | separable from, or merely link (or bind by name) to the interfaces of, 2319 | the Work and Derivative Works thereof. 2320 | 2321 | "Contribution" shall mean any work of authorship, including 2322 | the original version of the Work and any modifications or additions 2323 | to that Work or Derivative Works thereof, that is intentionally 2324 | submitted to Licensor for inclusion in the Work by the copyright owner 2325 | or by an individual or Legal Entity authorized to submit on behalf of 2326 | the copyright owner. For the purposes of this definition, "submitted" 2327 | means any form of electronic, verbal, or written communication sent 2328 | to the Licensor or its representatives, including but not limited to 2329 | communication on electronic mailing lists, source code control systems, 2330 | and issue tracking systems that are managed by, or on behalf of, the 2331 | Licensor for the purpose of discussing and improving the Work, but 2332 | excluding communication that is conspicuously marked or otherwise 2333 | designated in writing by the copyright owner as "Not a Contribution." 2334 | 2335 | "Contributor" shall mean Licensor and any individual or Legal Entity 2336 | on behalf of whom a Contribution has been received by Licensor and 2337 | subsequently incorporated within the Work. 2338 | 2339 | 2. Grant of Copyright License. Subject to the terms and conditions of 2340 | this License, each Contributor hereby grants to You a perpetual, 2341 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2342 | copyright license to reproduce, prepare Derivative Works of, 2343 | publicly display, publicly perform, sublicense, and distribute the 2344 | Work and such Derivative Works in Source or Object form. 2345 | 2346 | 3. Grant of Patent License. Subject to the terms and conditions of 2347 | this License, each Contributor hereby grants to You a perpetual, 2348 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2349 | (except as stated in this section) patent license to make, have made, 2350 | use, offer to sell, sell, import, and otherwise transfer the Work, 2351 | where such license applies only to those patent claims licensable 2352 | by such Contributor that are necessarily infringed by their 2353 | Contribution(s) alone or by combination of their Contribution(s) 2354 | with the Work to which such Contribution(s) was submitted. If You 2355 | institute patent litigation against any entity (including a 2356 | cross-claim or counterclaim in a lawsuit) alleging that the Work 2357 | or a Contribution incorporated within the Work constitutes direct 2358 | or contributory patent infringement, then any patent licenses 2359 | granted to You under this License for that Work shall terminate 2360 | as of the date such litigation is filed. 2361 | 2362 | 4. Redistribution. You may reproduce and distribute copies of the 2363 | Work or Derivative Works thereof in any medium, with or without 2364 | modifications, and in Source or Object form, provided that You 2365 | meet the following conditions: 2366 | 2367 | (a) You must give any other recipients of the Work or 2368 | Derivative Works a copy of this License; and 2369 | 2370 | (b) You must cause any modified files to carry prominent notices 2371 | stating that You changed the files; and 2372 | 2373 | (c) You must retain, in the Source form of any Derivative Works 2374 | that You distribute, all copyright, patent, trademark, and 2375 | attribution notices from the Source form of the Work, 2376 | excluding those notices that do not pertain to any part of 2377 | the Derivative Works; and 2378 | 2379 | (d) If the Work includes a "NOTICE" text file as part of its 2380 | distribution, then any Derivative Works that You distribute must 2381 | include a readable copy of the attribution notices contained 2382 | within such NOTICE file, excluding those notices that do not 2383 | pertain to any part of the Derivative Works, in at least one 2384 | of the following places: within a NOTICE text file distributed 2385 | as part of the Derivative Works; within the Source form or 2386 | documentation, if provided along with the Derivative Works; or, 2387 | within a display generated by the Derivative Works, if and 2388 | wherever such third-party notices normally appear. The contents 2389 | of the NOTICE file are for informational purposes only and 2390 | do not modify the License. You may add Your own attribution 2391 | notices within Derivative Works that You distribute, alongside 2392 | or as an addendum to the NOTICE text from the Work, provided 2393 | that such additional attribution notices cannot be construed 2394 | as modifying the License. 2395 | 2396 | You may add Your own copyright statement to Your modifications and 2397 | may provide additional or different license terms and conditions 2398 | for use, reproduction, or distribution of Your modifications, or 2399 | for any such Derivative Works as a whole, provided Your use, 2400 | reproduction, and distribution of the Work otherwise complies with 2401 | the conditions stated in this License. 2402 | 2403 | 5. Submission of Contributions. Unless You explicitly state otherwise, 2404 | any Contribution intentionally submitted for inclusion in the Work 2405 | by You to the Licensor shall be under the terms and conditions of 2406 | this License, without any additional terms or conditions. 2407 | Notwithstanding the above, nothing herein shall supersede or modify 2408 | the terms of any separate license agreement you may have executed 2409 | with Licensor regarding such Contributions. 2410 | 2411 | 6. Trademarks. This License does not grant permission to use the trade 2412 | names, trademarks, service marks, or product names of the Licensor, 2413 | except as required for reasonable and customary use in describing the 2414 | origin of the Work and reproducing the content of the NOTICE file. 2415 | 2416 | 7. Disclaimer of Warranty. Unless required by applicable law or 2417 | agreed to in writing, Licensor provides the Work (and each 2418 | Contributor provides its Contributions) on an "AS IS" BASIS, 2419 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 2420 | implied, including, without limitation, any warranties or conditions 2421 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 2422 | PARTICULAR PURPOSE. You are solely responsible for determining the 2423 | appropriateness of using or redistributing the Work and assume any 2424 | risks associated with Your exercise of permissions under this License. 2425 | 2426 | 8. Limitation of Liability. In no event and under no legal theory, 2427 | whether in tort (including negligence), contract, or otherwise, 2428 | unless required by applicable law (such as deliberate and grossly 2429 | negligent acts) or agreed to in writing, shall any Contributor be 2430 | liable to You for damages, including any direct, indirect, special, 2431 | incidental, or consequential damages of any character arising as a 2432 | result of this License or out of the use or inability to use the 2433 | Work (including but not limited to damages for loss of goodwill, 2434 | work stoppage, computer failure or malfunction, or any and all 2435 | other commercial damages or losses), even if such Contributor 2436 | has been advised of the possibility of such damages. 2437 | 2438 | 9. Accepting Warranty or Additional Liability. While redistributing 2439 | the Work or Derivative Works thereof, You may choose to offer, 2440 | and charge a fee for, acceptance of support, warranty, indemnity, 2441 | or other liability obligations and/or rights consistent with this 2442 | License. However, in accepting such obligations, You may act only 2443 | on Your own behalf and on Your sole responsibility, not on behalf 2444 | of any other Contributor, and only if You agree to indemnify, 2445 | defend, and hold each Contributor harmless for any liability 2446 | incurred by, or claims asserted against, such Contributor by reason 2447 | of your accepting any such warranty or additional liability. 2448 | 2449 | END OF TERMS AND CONDITIONS 2450 | 2451 | APPENDIX: How to apply the Apache License to your work. 2452 | 2453 | To apply the Apache License to your work, attach the following 2454 | boilerplate notice, with the fields enclosed by brackets "[]" 2455 | replaced with your own identifying information. (Don't include 2456 | the brackets!) The text should be enclosed in the appropriate 2457 | comment syntax for the file format. We also recommend that a 2458 | file or class name and description of purpose be included on the 2459 | same "printed page" as the copyright notice for easier 2460 | identification within third-party archives. 2461 | 2462 | Copyright [yyyy] [name of copyright owner] 2463 | 2464 | Licensed under the Apache License, Version 2.0 (the "License"); 2465 | you may not use this file except in compliance with the License. 2466 | You may obtain a copy of the License at 2467 | 2468 | http://www.apache.org/licenses/LICENSE-2.0 2469 | 2470 | Unless required by applicable law or agreed to in writing, software 2471 | distributed under the License is distributed on an "AS IS" BASIS, 2472 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2473 | See the License for the specific language governing permissions and 2474 | limitations under the License. 2475 | 2476 | ================================================================ 2477 | 2478 | google.golang.org/grpc 2479 | https://google.golang.org/grpc 2480 | ---------------------------------------------------------------- 2481 | 2482 | Apache License 2483 | Version 2.0, January 2004 2484 | http://www.apache.org/licenses/ 2485 | 2486 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 2487 | 2488 | 1. Definitions. 2489 | 2490 | "License" shall mean the terms and conditions for use, reproduction, 2491 | and distribution as defined by Sections 1 through 9 of this document. 2492 | 2493 | "Licensor" shall mean the copyright owner or entity authorized by 2494 | the copyright owner that is granting the License. 2495 | 2496 | "Legal Entity" shall mean the union of the acting entity and all 2497 | other entities that control, are controlled by, or are under common 2498 | control with that entity. For the purposes of this definition, 2499 | "control" means (i) the power, direct or indirect, to cause the 2500 | direction or management of such entity, whether by contract or 2501 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 2502 | outstanding shares, or (iii) beneficial ownership of such entity. 2503 | 2504 | "You" (or "Your") shall mean an individual or Legal Entity 2505 | exercising permissions granted by this License. 2506 | 2507 | "Source" form shall mean the preferred form for making modifications, 2508 | including but not limited to software source code, documentation 2509 | source, and configuration files. 2510 | 2511 | "Object" form shall mean any form resulting from mechanical 2512 | transformation or translation of a Source form, including but 2513 | not limited to compiled object code, generated documentation, 2514 | and conversions to other media types. 2515 | 2516 | "Work" shall mean the work of authorship, whether in Source or 2517 | Object form, made available under the License, as indicated by a 2518 | copyright notice that is included in or attached to the work 2519 | (an example is provided in the Appendix below). 2520 | 2521 | "Derivative Works" shall mean any work, whether in Source or Object 2522 | form, that is based on (or derived from) the Work and for which the 2523 | editorial revisions, annotations, elaborations, or other modifications 2524 | represent, as a whole, an original work of authorship. For the purposes 2525 | of this License, Derivative Works shall not include works that remain 2526 | separable from, or merely link (or bind by name) to the interfaces of, 2527 | the Work and Derivative Works thereof. 2528 | 2529 | "Contribution" shall mean any work of authorship, including 2530 | the original version of the Work and any modifications or additions 2531 | to that Work or Derivative Works thereof, that is intentionally 2532 | submitted to Licensor for inclusion in the Work by the copyright owner 2533 | or by an individual or Legal Entity authorized to submit on behalf of 2534 | the copyright owner. For the purposes of this definition, "submitted" 2535 | means any form of electronic, verbal, or written communication sent 2536 | to the Licensor or its representatives, including but not limited to 2537 | communication on electronic mailing lists, source code control systems, 2538 | and issue tracking systems that are managed by, or on behalf of, the 2539 | Licensor for the purpose of discussing and improving the Work, but 2540 | excluding communication that is conspicuously marked or otherwise 2541 | designated in writing by the copyright owner as "Not a Contribution." 2542 | 2543 | "Contributor" shall mean Licensor and any individual or Legal Entity 2544 | on behalf of whom a Contribution has been received by Licensor and 2545 | subsequently incorporated within the Work. 2546 | 2547 | 2. Grant of Copyright License. Subject to the terms and conditions of 2548 | this License, each Contributor hereby grants to You a perpetual, 2549 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2550 | copyright license to reproduce, prepare Derivative Works of, 2551 | publicly display, publicly perform, sublicense, and distribute the 2552 | Work and such Derivative Works in Source or Object form. 2553 | 2554 | 3. Grant of Patent License. Subject to the terms and conditions of 2555 | this License, each Contributor hereby grants to You a perpetual, 2556 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 2557 | (except as stated in this section) patent license to make, have made, 2558 | use, offer to sell, sell, import, and otherwise transfer the Work, 2559 | where such license applies only to those patent claims licensable 2560 | by such Contributor that are necessarily infringed by their 2561 | Contribution(s) alone or by combination of their Contribution(s) 2562 | with the Work to which such Contribution(s) was submitted. If You 2563 | institute patent litigation against any entity (including a 2564 | cross-claim or counterclaim in a lawsuit) alleging that the Work 2565 | or a Contribution incorporated within the Work constitutes direct 2566 | or contributory patent infringement, then any patent licenses 2567 | granted to You under this License for that Work shall terminate 2568 | as of the date such litigation is filed. 2569 | 2570 | 4. Redistribution. You may reproduce and distribute copies of the 2571 | Work or Derivative Works thereof in any medium, with or without 2572 | modifications, and in Source or Object form, provided that You 2573 | meet the following conditions: 2574 | 2575 | (a) You must give any other recipients of the Work or 2576 | Derivative Works a copy of this License; and 2577 | 2578 | (b) You must cause any modified files to carry prominent notices 2579 | stating that You changed the files; and 2580 | 2581 | (c) You must retain, in the Source form of any Derivative Works 2582 | that You distribute, all copyright, patent, trademark, and 2583 | attribution notices from the Source form of the Work, 2584 | excluding those notices that do not pertain to any part of 2585 | the Derivative Works; and 2586 | 2587 | (d) If the Work includes a "NOTICE" text file as part of its 2588 | distribution, then any Derivative Works that You distribute must 2589 | include a readable copy of the attribution notices contained 2590 | within such NOTICE file, excluding those notices that do not 2591 | pertain to any part of the Derivative Works, in at least one 2592 | of the following places: within a NOTICE text file distributed 2593 | as part of the Derivative Works; within the Source form or 2594 | documentation, if provided along with the Derivative Works; or, 2595 | within a display generated by the Derivative Works, if and 2596 | wherever such third-party notices normally appear. The contents 2597 | of the NOTICE file are for informational purposes only and 2598 | do not modify the License. You may add Your own attribution 2599 | notices within Derivative Works that You distribute, alongside 2600 | or as an addendum to the NOTICE text from the Work, provided 2601 | that such additional attribution notices cannot be construed 2602 | as modifying the License. 2603 | 2604 | You may add Your own copyright statement to Your modifications and 2605 | may provide additional or different license terms and conditions 2606 | for use, reproduction, or distribution of Your modifications, or 2607 | for any such Derivative Works as a whole, provided Your use, 2608 | reproduction, and distribution of the Work otherwise complies with 2609 | the conditions stated in this License. 2610 | 2611 | 5. Submission of Contributions. Unless You explicitly state otherwise, 2612 | any Contribution intentionally submitted for inclusion in the Work 2613 | by You to the Licensor shall be under the terms and conditions of 2614 | this License, without any additional terms or conditions. 2615 | Notwithstanding the above, nothing herein shall supersede or modify 2616 | the terms of any separate license agreement you may have executed 2617 | with Licensor regarding such Contributions. 2618 | 2619 | 6. Trademarks. This License does not grant permission to use the trade 2620 | names, trademarks, service marks, or product names of the Licensor, 2621 | except as required for reasonable and customary use in describing the 2622 | origin of the Work and reproducing the content of the NOTICE file. 2623 | 2624 | 7. Disclaimer of Warranty. Unless required by applicable law or 2625 | agreed to in writing, Licensor provides the Work (and each 2626 | Contributor provides its Contributions) on an "AS IS" BASIS, 2627 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 2628 | implied, including, without limitation, any warranties or conditions 2629 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 2630 | PARTICULAR PURPOSE. You are solely responsible for determining the 2631 | appropriateness of using or redistributing the Work and assume any 2632 | risks associated with Your exercise of permissions under this License. 2633 | 2634 | 8. Limitation of Liability. In no event and under no legal theory, 2635 | whether in tort (including negligence), contract, or otherwise, 2636 | unless required by applicable law (such as deliberate and grossly 2637 | negligent acts) or agreed to in writing, shall any Contributor be 2638 | liable to You for damages, including any direct, indirect, special, 2639 | incidental, or consequential damages of any character arising as a 2640 | result of this License or out of the use or inability to use the 2641 | Work (including but not limited to damages for loss of goodwill, 2642 | work stoppage, computer failure or malfunction, or any and all 2643 | other commercial damages or losses), even if such Contributor 2644 | has been advised of the possibility of such damages. 2645 | 2646 | 9. Accepting Warranty or Additional Liability. While redistributing 2647 | the Work or Derivative Works thereof, You may choose to offer, 2648 | and charge a fee for, acceptance of support, warranty, indemnity, 2649 | or other liability obligations and/or rights consistent with this 2650 | License. However, in accepting such obligations, You may act only 2651 | on Your own behalf and on Your sole responsibility, not on behalf 2652 | of any other Contributor, and only if You agree to indemnify, 2653 | defend, and hold each Contributor harmless for any liability 2654 | incurred by, or claims asserted against, such Contributor by reason 2655 | of your accepting any such warranty or additional liability. 2656 | 2657 | END OF TERMS AND CONDITIONS 2658 | 2659 | APPENDIX: How to apply the Apache License to your work. 2660 | 2661 | To apply the Apache License to your work, attach the following 2662 | boilerplate notice, with the fields enclosed by brackets "[]" 2663 | replaced with your own identifying information. (Don't include 2664 | the brackets!) The text should be enclosed in the appropriate 2665 | comment syntax for the file format. We also recommend that a 2666 | file or class name and description of purpose be included on the 2667 | same "printed page" as the copyright notice for easier 2668 | identification within third-party archives. 2669 | 2670 | Copyright [yyyy] [name of copyright owner] 2671 | 2672 | Licensed under the Apache License, Version 2.0 (the "License"); 2673 | you may not use this file except in compliance with the License. 2674 | You may obtain a copy of the License at 2675 | 2676 | http://www.apache.org/licenses/LICENSE-2.0 2677 | 2678 | Unless required by applicable law or agreed to in writing, software 2679 | distributed under the License is distributed on an "AS IS" BASIS, 2680 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2681 | See the License for the specific language governing permissions and 2682 | limitations under the License. 2683 | 2684 | ================================================================ 2685 | 2686 | rsc.io/pdf 2687 | https://rsc.io/pdf 2688 | ---------------------------------------------------------------- 2689 | Copyright (c) 2009 The Go Authors. All rights reserved. 2690 | 2691 | Redistribution and use in source and binary forms, with or without 2692 | modification, are permitted provided that the following conditions are 2693 | met: 2694 | 2695 | * Redistributions of source code must retain the above copyright 2696 | notice, this list of conditions and the following disclaimer. 2697 | * Redistributions in binary form must reproduce the above 2698 | copyright notice, this list of conditions and the following disclaimer 2699 | in the documentation and/or other materials provided with the 2700 | distribution. 2701 | * Neither the name of Google Inc. nor the names of its 2702 | contributors may be used to endorse or promote products derived from 2703 | this software without specific prior written permission. 2704 | 2705 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2706 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2707 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2708 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2709 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2710 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2711 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2712 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2713 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2714 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2715 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2716 | 2717 | ================================================================ 2718 | 2719 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright (c) 2019-present Future Corporation 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gbilling-plot 2 | ![go version 1.12](https://img.shields.io/badge/go-v1.12-green.svg) 3 | [![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) 4 | [![Go Report Card](https://goreportcard.com/badge/github.com/future-architect/gbilling-plot)](https://goreportcard.com/report/github.com/future-architect/gcp-instance-scheduler) 5 | 6 | Create graphed invoice for Google Cloud Platform. You can see billing amount per GCP project. 7 | 8 | ## Usage 9 | 10 | This package uses below great services. 11 | 12 | - Google Cloud Billing(BigQuery) 13 | - Google Cloud Functions 14 | - Google Cloud Pub/Sub 15 | - Google Cloud Scheduler 16 | - Slack API 17 | 18 | ## QuickStart 19 | 20 | 1. Install 21 | ```console 22 | go get -u go get -u github.com/future-architect/gbilling-plot/cmd/gbplot 23 | ``` 24 | 2. Obtain GCP Service credentials that must have `bigquery.tables.getData` and `bigquery.jobs.create` permission 25 | * You can assign predefined Cloud IAM roles that are `dataViewer` and `jobUser` 26 | 3. Set environment variable 27 | ```bash 28 | export GOOGLE_APPLICATION_CREDENTIALS= 29 | ``` 30 | 4. Export your GCP billing to BigQuery 31 | * https://cloud.google.com/billing/docs/how-to/export-data-bigquery 32 | 5. Run command 33 | ```bash 34 | gbplot -project -table -out out.png 35 | ``` 36 | 6. You can confirm out.png file 37 | 38 | ## Options 39 | 40 | ```console 41 | $ gbplot --help 42 | Usage of gbplot: 43 | -l int 44 | Max display project count (default 8) 45 | -limit int 46 | Max display project count (default 8) 47 | -o string 48 | Output file name (default "out.png") 49 | -out string 50 | Output file name (default "out.png") 51 | -p string 52 | GCP project name 53 | -project string 54 | GCP project name 55 | -t string 56 | BigQuery billing table name 57 | -table string 58 | BigQuery billing table name 59 | ``` 60 | 61 | ## Deploy Google Cloud Function 62 | 63 | ### Requirements 64 | 65 | * [Go](https://golang.org/dl/) more than 1.11 66 | * [Cloud SDK](https://cloud.google.com/sdk/install/) 67 | 68 | ### Steps 69 | 70 | 1. [Get Slack API Token](https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens#-internal-app-tokens) 71 | * Permission Scopes is required `files:write:user` 72 | * Create `Bot User OAuth Access Token` and `Install App` 73 | 2. [Create Slack Bot User](https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens#-bot-user-tokens) 74 | * invite bot user to slack channel 75 | 3. [Export your GCP billing to BigQuery](https://cloud.google.com/billing/docs/how-to/export-data-bigquery) 76 | 4. Create Cloud Scheduler 77 | ```sh 78 | gcloud beta scheduler jobs create pubsub graph-billing --project "" \ 79 | --schedule "50 23 * * *" \ 80 | --topic graph-billing \ 81 | --message-body="{}" \ 82 | --time-zone "Asia/Tokyo" \ 83 | --description "This is scheduler for graph billing." 84 | ``` 85 | 5. Deploy to Cloud Function 86 | ```sh 87 | git clone https://github.com/future-architect/gbilling-plot.git 88 | cd gbilling-plot 89 | gcloud functions deploy graphBilling --project "" \ 90 | --entry-point GraphedBilling \ 91 | --triggerz-resource graph-billing \ 92 | --trigger-event google.pubsub.topic.publish \ 93 | --runtime go111 \ 94 | --set-env-vars TABLE_NAME="" \ 95 | --set-env-vars SLACK_API_TOKEN="" \ 96 | --set-env-vars SLACK_CHANNEL="" 97 | ``` 98 | 6. Go to the [Cloud Scheduler page](https://cloud.google.com/scheduler/docs/tut-pub-sub) and click the *run now* button of *graphBilling* 99 | 100 | ## Example 101 | 102 | Sample output is below. 103 | 104 | ![example](img/example_grapth.png) 105 | 106 | ## License 107 | 108 | This project is licensed under the Apache License 2.0 License - see the [LICENSE](LICENSE) file for details 109 | -------------------------------------------------------------------------------- /cmd/gbplot/gbplot.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package main 17 | 18 | import ( 19 | "context" 20 | "flag" 21 | "github.com/future-architect/gbilling-plot/graph" 22 | "github.com/future-architect/gbilling-plot/invoice" 23 | "io/ioutil" 24 | "log" 25 | "os" 26 | ) 27 | 28 | const period = 30 29 | 30 | func main() { 31 | 32 | projectID := flag.String("p", os.Getenv("GCP_PROJECT"), "GCP project name") 33 | tableName := flag.String("t", os.Getenv("TABLE_NAME"), "BigQuery billing table name") 34 | outFileName := flag.String("o", "out.png", "Output file name") 35 | limit := flag.Int("l", 8, "Max display project count") 36 | flag.StringVar(projectID, "project", "", "GCP project name") 37 | flag.StringVar(tableName, "table", "", "BigQuery billing table name") 38 | flag.StringVar(outFileName, "out", "out.png", "Output file name") 39 | flag.IntVar(limit, "limit", 8, "Max display project count") 40 | flag.Parse() 41 | 42 | if *projectID == "" || *tableName == "" { 43 | log.Fatal("missing env") 44 | } 45 | 46 | if os.Getenv("GOOGLE_APPLICATION_CREDENTIALS") == "" { 47 | log.Fatal("GOOGLE_APPLICATION_CREDENTIALS is required") 48 | } 49 | 50 | ctx := context.Background() 51 | ivc, err := invoice.NewInvoice(ctx, *projectID) 52 | if err != nil { 53 | log.Println("invoice initialize is failed") 54 | log.Fatal(err) 55 | } 56 | 57 | costs, err := ivc.FetchBilling(ctx, *tableName, period) 58 | if err != nil { 59 | log.Println("fetch billing is failed") 60 | log.Fatal(err) 61 | } 62 | 63 | summaryCosts := costs.SummaryLowerProjects(*limit) 64 | 65 | plotBytes, err := graph.Draw(summaryCosts) 66 | if err != nil { 67 | log.Println("fetch billing is failed") 68 | log.Fatal(err) 69 | } 70 | 71 | 72 | if err := ioutil.WriteFile(*outFileName, plotBytes, 0644); err != nil { 73 | log.Fatal(err) 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /entrypoint.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package gbillingplot 17 | 18 | import ( 19 | "bytes" 20 | "cloud.google.com/go/pubsub" 21 | "context" 22 | "encoding/json" 23 | "errors" 24 | "github.com/future-architect/gbilling-plot/graph" 25 | "github.com/future-architect/gbilling-plot/invoice" 26 | "github.com/future-architect/gbilling-plot/notify" 27 | "log" 28 | "os" 29 | ) 30 | 31 | const period = 30 32 | 33 | type Payload struct { 34 | Limit int `json:"limit"` 35 | } 36 | 37 | func GraphedBilling(ctx context.Context, m *pubsub.Message) error { 38 | log.Println("start GraphedBilling") 39 | 40 | var ( 41 | projectID = os.Getenv("GCP_PROJECT") 42 | tableName = os.Getenv("TABLE_NAME") 43 | slackToken = os.Getenv("SLACK_API_TOKEN") 44 | slackChannel = os.Getenv("SLACK_CHANNEL") 45 | ) 46 | 47 | if projectID == "" || tableName == "" || slackToken == "" || slackChannel == "" { 48 | return errors.New("missing env") 49 | } 50 | 51 | payload, err := decode(m.Data) 52 | if err != nil { 53 | log.Printf("error at the fucntion 'decode': %v", err) 54 | return err 55 | } 56 | limit := payload.Limit 57 | if limit == 0 { 58 | limit = 8 // default 59 | } 60 | 61 | ivc, err := invoice.NewInvoice(ctx, projectID) 62 | if err != nil { 63 | log.Println("invoice initialize is failed") 64 | return err 65 | } 66 | 67 | costs, err := ivc.FetchBilling(ctx, tableName, period) 68 | if err != nil { 69 | log.Println("fetch billing is failed") 70 | return err 71 | } 72 | 73 | summaryCosts := costs.SummaryLowerProjects(limit) 74 | 75 | plotBytes, err := graph.Draw(summaryCosts) 76 | if err != nil { 77 | log.Println("graph draw is failed") 78 | return err 79 | } 80 | 81 | notifier := notify.NewSlackNotifier(slackToken, slackChannel) 82 | if err := notifier.PostImage(ctx, bytes.NewBuffer(plotBytes)); err != nil { 83 | log.Println("Slack post is failed") 84 | return err 85 | } 86 | 87 | log.Println("finish GraphedBilling") 88 | return nil 89 | } 90 | 91 | func decode(payload []byte) (p Payload, err error) { 92 | if err = json.Unmarshal(payload, &p); err != nil { 93 | log.Printf("Message[%v] ... Could not decode subscribing data: %v", payload, err) 94 | if e, ok := err.(*json.SyntaxError); ok { 95 | log.Printf("syntax error at byte offset %d", e.Offset) 96 | } 97 | return 98 | } 99 | return 100 | } 101 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/future-architect/gbilling-plot 2 | 3 | go 1.12 4 | 5 | require ( 6 | cloud.google.com/go v0.43.0 7 | github.com/gorilla/websocket v1.4.0 // indirect 8 | github.com/lusis/go-slackbot v0.0.0-20180109053408-401027ccfef5 // indirect 9 | github.com/lusis/slack-test v0.0.0-20190426140909-c40012f20018 // indirect 10 | github.com/nlopes/slack v0.5.0 11 | github.com/pkg/errors v0.8.1 // indirect 12 | github.com/stretchr/testify v1.3.0 // indirect 13 | gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect 14 | gonum.org/v1/plot v0.0.0-20190615073203-9aa86143727f 15 | google.golang.org/api v0.7.0 16 | ) 17 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.43.0 h1:banaiRPAM8kUVYneOSkhgcDsLzEvL25FinuiSZaH/2w= 5 | cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= 6 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 7 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 8 | github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af h1:wVe6/Ea46ZMeNkQjjBW6xcqyQA/j5e0D6GytH95g0gQ= 9 | github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= 10 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 11 | github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 12 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 13 | github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90 h1:WXb3TSNmHp2vHoCroCIB1foO/yQ36swABL8aOVeDpgg= 14 | github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= 15 | github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= 16 | github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= 17 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= 18 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 19 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 20 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 21 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 22 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 23 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 24 | github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs= 25 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 26 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 27 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 28 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 29 | github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= 30 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 31 | github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= 32 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 33 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 34 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 35 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 36 | github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= 37 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 38 | github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= 39 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= 40 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 41 | github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= 42 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 43 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 44 | github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5 h1:PJr+ZMXIecYc1Ey2zucXdR73SMBtgjPgwa31099IMv0= 45 | github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= 46 | github.com/lusis/go-slackbot v0.0.0-20180109053408-401027ccfef5 h1:AsEBgzv3DhuYHI/GiQh2HxvTP71HCCE9E/tzGUzGdtU= 47 | github.com/lusis/go-slackbot v0.0.0-20180109053408-401027ccfef5/go.mod h1:c2mYKRyMb1BPkO5St0c/ps62L4S0W2NAkaTXj9qEI+0= 48 | github.com/lusis/slack-test v0.0.0-20190426140909-c40012f20018 h1:MNApn+Z+fIT4NPZopPfCc1obT6aY3SVM6DOctz1A9ZU= 49 | github.com/lusis/slack-test v0.0.0-20190426140909-c40012f20018/go.mod h1:sFlOUpQL1YcjhFVXhg1CG8ZASEs/Mf1oVb6H75JL/zg= 50 | github.com/nlopes/slack v0.5.0 h1:NbIae8Kd0NpqaEI3iUrsuS0KbcEDhzhc939jLW5fNm0= 51 | github.com/nlopes/slack v0.5.0/go.mod h1:jVI4BBK3lSktibKahxBF74txcK2vyvkza1z/+rRnVAM= 52 | github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= 53 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 54 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 55 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 56 | github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= 57 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 58 | github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= 59 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 60 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 61 | go.opencensus.io v0.22.0 h1:C9hSCOW830chIVkdja34wa6Ky+IzWllkUinR+BtRZd4= 62 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 63 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 64 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 65 | golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 66 | golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 67 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 68 | golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 69 | golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 70 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522 h1:OeRHuibLsmZkFj773W4LcfAGsSxJgfPONhr8cmO+eLA= 71 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 72 | golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= 73 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067 h1:KYGJGHOQy8oSi1fDlSpcZF0+juKwk/hEMv5SiwHogR0= 74 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 75 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 76 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 77 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 78 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 79 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 80 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 81 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 82 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 83 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 84 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 85 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 86 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 87 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 88 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 89 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 90 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859 h1:R/3boaszxrf1GEUWTVDzSKVwLmSJpwZ1yqXm8j0v2QI= 91 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 92 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 93 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 94 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= 95 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 96 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 97 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 98 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 99 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 100 | golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= 101 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 102 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 103 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 104 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 105 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 106 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 107 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 108 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 109 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= 110 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 111 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 112 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 113 | golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= 114 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 115 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 116 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 117 | golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 118 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 119 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 120 | golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 121 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 122 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 123 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 124 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 125 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 126 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 127 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 128 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 129 | gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4 h1:nYxTaCPaVoJbxx+vMVnsFb6kw5+6aJCx52m/lmM/Vog= 130 | gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= 131 | gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485 h1:OB/uP/Puiu5vS5QMRPrXCDWUPb+kt8f1KW8oQzFejQw= 132 | gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= 133 | gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= 134 | gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e h1:jRyg0XfpwWlhEV8mDfdNGBeSJM2fuyh9Yjrnd8kF2Ts= 135 | gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= 136 | gonum.org/v1/plot v0.0.0-20190615073203-9aa86143727f h1:5+IdMldM5iTBk6wFBDtdVSSCaIPL922N3xbxmPE3Z1g= 137 | gonum.org/v1/plot v0.0.0-20190615073203-9aa86143727f/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= 138 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 139 | google.golang.org/api v0.7.0 h1:9sdfJOzWlkqPltHAuzT2Cp+yrBeY1KRVYgms8soxMwM= 140 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 141 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 142 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 143 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 144 | google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I= 145 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 146 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 147 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 148 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 149 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 150 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 151 | google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610 h1:Ygq9/SRJX9+dU0WCIICM8RkWvDw03lvB77hrhJnpxfU= 152 | google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 153 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 154 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 155 | google.golang.org/grpc v1.21.1 h1:j6XxA85m/6txkUCHvzlV5f+HBNl/1r5cZ2A/3IEFOO8= 156 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 157 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 158 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 159 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 160 | modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= 161 | modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= 162 | modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= 163 | modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= 164 | modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= 165 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 166 | rsc.io/pdf v0.1.1 h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4= 167 | rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= 168 | -------------------------------------------------------------------------------- /graph/graph.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package graph 17 | 18 | import ( 19 | "bytes" 20 | "image/color" 21 | "math" 22 | "strconv" 23 | "time" 24 | "unicode/utf8" 25 | 26 | "github.com/future-architect/gbilling-plot/invoice" 27 | "gonum.org/v1/plot" 28 | "gonum.org/v1/plot/plotter" 29 | "gonum.org/v1/plot/plotutil" 30 | "gonum.org/v1/plot/vg" 31 | ) 32 | 33 | func Draw(costList invoice.CostList) ([]byte, error) { 34 | 35 | p, w, err := newPlot() 36 | if err != nil { 37 | return nil, err 38 | } 39 | 40 | if err := addBarChart(p, w, costList); err != nil { 41 | return nil, err 42 | } 43 | 44 | // max y axis 45 | p.Y.Max = calcYAxisTop(costList, p.Y.Max) 46 | 47 | to, err := p.WriterTo(10*vg.Inch, 5*vg.Inch, "png") 48 | if err != nil { 49 | return nil, err 50 | } 51 | 52 | var buffer bytes.Buffer 53 | if _, err := to.WriteTo(&buffer); err != nil { 54 | return nil, err 55 | } 56 | 57 | return buffer.Bytes(), nil 58 | } 59 | 60 | func newPlot() (*plot.Plot, vg.Length, error) { 61 | 62 | p, err := plot.New() 63 | if err != nil { 64 | return nil, vg.Length(0), err 65 | } 66 | 67 | p.Title.Text = "Stacked Bar Chart on Projects" 68 | p.Y.Label.Text = "yen (jp)" 69 | p.Legend.Top = true 70 | p.Legend.Left = true 71 | 72 | grid := plotter.NewGrid() 73 | grid.Horizontal.Color = color.Black 74 | grid.Horizontal.Dashes = []vg.Length{vg.Length(5)} 75 | p.Add(grid) 76 | 77 | w := vg.Points(15) 78 | 79 | today := time.Now() 80 | p.NominalX(today.AddDate(0, 0, -29).Format("01/02"), "", "", "", "", today.AddDate(0, 0, -24).Format("01/02"), "", "", "", "", today.AddDate(0, 0, -19).Format("01/02"), "", "", "", "", today.AddDate(0, 0, -14).Format("01/02"), "", "", "", "", today.AddDate(0, 0, -9).Format("01/02"), "", "", "", "", today.AddDate(0, 0, -4).Format("01/02"), "", "", "", today.Format("01/02")) 81 | 82 | return p, w, nil 83 | } 84 | 85 | func addBarChart(p *plot.Plot, w vg.Length, costList invoice.CostList) error { 86 | 87 | var beforeBarChar *plotter.BarChart 88 | currentProject := "" 89 | colorCount := 0 90 | 91 | plotCostList := make(invoice.CostList, 0, len(costList)) 92 | 93 | for _, c := range costList { 94 | if currentProject == "" { 95 | currentProject = c.Project 96 | } 97 | 98 | if currentProject != c.Project { 99 | plotCostList = plotCostList.Padding().SortByDate() 100 | barChart, err := newBarChart(colorCount, plotCostList.Values(), w) 101 | if err != nil { 102 | return err 103 | } 104 | if beforeBarChar != nil { 105 | barChart.StackOn(beforeBarChar) 106 | } 107 | p.Add(barChart) 108 | p.Legend.Add(currentProject, barChart) 109 | 110 | beforeBarChar = barChart 111 | currentProject = c.Project 112 | 113 | // empty slice 114 | plotCostList = plotCostList[:0] 115 | colorCount++ 116 | } 117 | plotCostList = append(plotCostList, c) 118 | } 119 | 120 | plotCostList = plotCostList.Padding().SortByDate() 121 | barChart, err := newBarChart(colorCount, plotCostList.Values(), w) 122 | if err != nil { 123 | return err 124 | } 125 | barChart.StackOn(beforeBarChar) 126 | p.Add(barChart) 127 | p.Legend.Add(currentProject, barChart) 128 | 129 | return nil 130 | } 131 | 132 | func newBarChart(counter int, plotValues plotter.Values, w vg.Length) (*plotter.BarChart, error) { 133 | barChart, err := plotter.NewBarChart(plotValues, w) 134 | if err != nil { 135 | return nil, err 136 | } 137 | 138 | barChart.Color = plotutil.Color(counter) 139 | barChart.LineStyle.Width = vg.Length(0) 140 | 141 | return barChart, nil 142 | } 143 | 144 | // Calculate Y Axis max length 145 | func calcYAxisTop(costList invoice.CostList, yAxisTop float64) float64 { 146 | 147 | maxCost := costList.MaxCost() 148 | length := utf8.RuneCountInString(strconv.Itoa(int(maxCost))) 149 | 150 | var yAxisCriteria float64 151 | switch length { 152 | case 1, 2: 153 | yAxisCriteria = 100 154 | default: 155 | yAxisCriteria = math.Pow10(length - 1) 156 | } 157 | 158 | return float64(int(yAxisTop)/int(yAxisCriteria)+1) * yAxisCriteria 159 | } 160 | -------------------------------------------------------------------------------- /img/example_grapth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/future-architect/gbilling-plot/12b5a45c6d8e5cd1125eb3c59a39f6ec1e812ed1/img/example_grapth.png -------------------------------------------------------------------------------- /invoice/daily_cost.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package invoice 17 | 18 | import ( 19 | "sort" 20 | "time" 21 | ) 22 | 23 | type Cost struct { 24 | Date string `bigquery:"date"` 25 | Project string `bigquery:"project"` 26 | Cost float64 `bigquery:"cost"` 27 | } 28 | 29 | type CostList []Cost 30 | 31 | func (cl CostList) SummaryLowerProjects(thresholdRank int) CostList { 32 | 33 | sorts := cl.sortByTotalCost() 34 | 35 | var summaryTargets []Cost 36 | if len(sorts) > thresholdRank { 37 | summaryTargets = sorts[0 : len(sorts)-thresholdRank] 38 | } 39 | 40 | var result []Cost 41 | var summaryCosts = map[string]Cost{} 42 | for _, v := range cl { 43 | if CostList(summaryTargets).containsProject(v.Project) { 44 | cost, ok := summaryCosts[v.Date] 45 | if ok { 46 | cost.Cost += v.Cost 47 | summaryCosts[v.Date] = cost 48 | continue 49 | } 50 | summaryCosts[v.Date] = Cost{ 51 | Date: v.Date, 52 | Project: "Others", 53 | Cost: v.Cost, 54 | } 55 | continue 56 | } 57 | result = append(result, v) 58 | } 59 | 60 | var others []Cost 61 | for _, v := range summaryCosts { 62 | others = append(others, v) 63 | } 64 | othersCosts := CostList(others).SortByDate() 65 | 66 | // merge 67 | result = append(result, othersCosts...) 68 | 69 | return result 70 | } 71 | 72 | func (cl CostList) MaxCost() float64 { 73 | max := 0.0 74 | for _, v := range cl { 75 | if max < v.Cost { 76 | max = v.Cost 77 | } 78 | } 79 | return max 80 | } 81 | 82 | func (cl CostList) Values() []float64 { 83 | result := make([]float64, 0, len(cl)) 84 | for _, v := range cl { 85 | result = append(result, v.Cost) 86 | } 87 | return result 88 | } 89 | 90 | // return zero padded list to adopt month length 91 | func (cl CostList) Padding() CostList { 92 | begin := time.Now().AddDate(0, 0, -29) 93 | end := time.Now() 94 | result := cl 95 | for d := begin; d.Before(end); d = d.AddDate(0, 0, 1) { 96 | isFind := false 97 | for i := 0; i < len(cl); i++ { 98 | if d.Format("2006-01-02") == cl[i].Date { 99 | isFind = true 100 | break 101 | } 102 | } 103 | if !isFind { 104 | result = append(result, Cost{d.Format("2006-01-02"), "", 0}) 105 | } 106 | } 107 | return result 108 | } 109 | 110 | func (cl CostList) SortByDate() CostList { 111 | sort.Slice(cl, func(i, j int) bool { 112 | return cl[i].Date < cl[j].Date 113 | }) 114 | return cl 115 | } 116 | 117 | func (cl CostList) containsProject(project string) bool { 118 | for _, v := range cl { 119 | if project == v.Project { 120 | return true 121 | } 122 | } 123 | return false 124 | } 125 | 126 | // SortByTotalCost is sum cost per project and sort asc by sum cost 127 | func (cl CostList) sortByTotalCost() CostList { 128 | 129 | sumMap := map[string]float64{} 130 | for _, v := range cl { 131 | sumMap[v.Project] += v.Cost 132 | } 133 | 134 | var sumCosts []Cost 135 | for k, v := range sumMap { 136 | sumCosts = append(sumCosts, Cost{ 137 | Project: k, 138 | Cost: v, 139 | }) 140 | } 141 | 142 | return CostList(sumCosts).sortByCost() 143 | } 144 | 145 | func (cl CostList) sortByCost() CostList { 146 | sort.Slice(cl, func(i, j int) bool { 147 | return cl[i].Cost < cl[j].Cost 148 | }) 149 | return cl 150 | } 151 | -------------------------------------------------------------------------------- /invoice/invoice.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package invoice 17 | 18 | import ( 19 | "cloud.google.com/go/bigquery" 20 | "context" 21 | "google.golang.org/api/iterator" 22 | "time" 23 | ) 24 | 25 | type invoice struct { 26 | client *bigquery.Client 27 | } 28 | 29 | func NewInvoice(ctx context.Context, projectID string) (*invoice, error) { 30 | client, err := bigquery.NewClient(ctx, projectID) 31 | if err != nil { 32 | return nil, err 33 | } 34 | return &invoice{client: client}, nil 35 | } 36 | 37 | func (i *invoice) FetchBilling(ctx context.Context, tableName string, period int) (CostList, error) { 38 | 39 | endDay := time.Now() 40 | startDay := endDay.AddDate(0, 0, -(period - 1)) 41 | stmt := ` 42 | SELECT 43 | CAST(sq.date AS string) AS date, 44 | sq.project AS project, 45 | sq.cost AS cost 46 | FROM ( 47 | SELECT 48 | DATE(_PARTITIONTIME) AS date, 49 | project.id AS project, 50 | IFNULL(SUM(cost), 0) AS cost 51 | FROM 52 | ` + "`" + tableName + "`" + ` 53 | WHERE 54 | DATE(_PARTITIONTIME) BETWEEN ` + startDay.Format("'2006-01-02'") + ` 55 | AND ` + endDay.Format("'2006-01-02'") + ` 56 | AND project.id IS NOT NULL 57 | GROUP BY 58 | DATE(_PARTITIONTIME), project ) AS sq 59 | ORDER BY 60 | sq.project, 61 | sq.date 62 | ` 63 | 64 | iter, err := i.client.Query(stmt).Read(ctx) 65 | if err != nil { 66 | return nil, err 67 | } 68 | 69 | var costList []Cost 70 | for { 71 | var c Cost 72 | err := iter.Next(&c) 73 | if err == iterator.Done { 74 | break 75 | } 76 | if err != nil { 77 | return nil, err 78 | } 79 | costList = append(costList, c) 80 | } 81 | return costList, nil 82 | } 83 | -------------------------------------------------------------------------------- /notify/slack_notiflier.go: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2019-present Future Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package notify 17 | 18 | import ( 19 | "context" 20 | "github.com/nlopes/slack" 21 | "io" 22 | ) 23 | 24 | type slackNotifier struct { 25 | slackAPIToken string 26 | slackChannel string 27 | } 28 | 29 | func NewSlackNotifier(slackAPIToken, slackChannel string) *slackNotifier { 30 | return &slackNotifier{ 31 | slackAPIToken: slackAPIToken, 32 | slackChannel: slackChannel, 33 | } 34 | } 35 | 36 | func (n *slackNotifier) PostImage(ctx context.Context, r io.Reader) error { 37 | _, err := slack.New(n.slackAPIToken).UploadFileContext(ctx, 38 | slack.FileUploadParameters{ 39 | Reader: r, 40 | Filename: "Stacked Bar Chart on Projects", 41 | Channels: []string{n.slackChannel}, 42 | }) 43 | return err 44 | } 45 | --------------------------------------------------------------------------------