pasteus / pastemegobackend Goto Github PK
View Code? Open in Web Editor NEWPasteMe Go 后端,Golang + Gin + Gorm
Home Page: https://docs.pasteme.cn
License: GNU General Public License v3.0
PasteMe Go 后端,Golang + Gin + Gorm
Home Page: https://docs.pasteme.cn
License: GNU General Public License v3.0
When using sqlite
as persistence system, program will create pasteme.db
file under work directory, which is naive, and can not persistent the pasteme.db
when using docker in case of work directory is /
for default.
CodeFactor found an issue: Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag
It's currently on:
Dockerfile:9
Commit 5935447
CodeFactor found an issue: Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag
It's currently on:
Dockerfile:1
Commit 5935447
CodeFactor found an issue: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
It's currently on:
gotest.sh:21
Commit 5935447
After startup, it looks like the init()
function of package model
would be executed before package config
, which cause program will think about this line is true.
So program will always using sqlite
instead of mysql
.
DELETE
/:key?token=
Name | Description |
---|---|
key |
The key need to be deleted |
token |
The token required by backend |
CodeFactor found an issue: Duplicate Code
It's currently on:
server\handler.go:121-136
server\handler.go:88-103
可否考虑增加账号登录功能,比如两个设备在登录同一个账号的时候,其中一个设备上传了一段文本另一个设备自动显示出来。但是这个好像有点违背这个项目的初衷,所以,还有另一个建议。
就是在上传我们的同时输入一串数字,然后其他设备也输这个数字,要刚刚上传的内容 ,主要还是因为现在的索引号变得非常复杂😂
Dependabot can't resolve your Go dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
github.com/PasteUs/PasteMeGoBackend/config: cannot find module providing package github.com/PasteUs/PasteMeGoBackend/config
github.com/PasteUs/PasteMeGoBackend/flag: cannot find module providing package github.com/PasteUs/PasteMeGoBackend/flag
github.com/PasteUs/PasteMeGoBackend/server: cannot find module providing package github.com/PasteUs/PasteMeGoBackend/server
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
如题,尝试访问:测试连接,可看到如下内容:
#include <bits/stdc++.h>
int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
当我尝试使用: https://api.pasteme.cn/100 ,且HTTP HEADER为以下内容时:
Request URL: https://api.pasteme.cn/100
Referrer Policy: strict-origin-when-cross-origin
sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
API无响应,这个问题已经许久了,是否考虑修复或继续支持API调用?
CodeFactor found an issue: Duplicate Code
It's currently on:
server\handler.go:176-187
server\handler.go:227-238
CodeFactor found an issue: Duplicate Code
It's currently on:
dbTransfer\database\model.go:143-164
dbTransfer\database\model.go:186-207
CodeFactor found an issue: Duplicate Code
It's currently on:
server\handler.go:239-257
server\handler.go:195-215
url = 'https://api.pasteme.cn'
header = {'Content-Type': 'application/json'}
param = {'lang': 'bash', 'content': 'Hello'}
r = requests.post(url, headers=header, params=param)
print(r.text)
And it turns out
<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white">
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.