refactor: moved response module to web.response

database-fixes
Jef Roosens 2022-08-13 13:16:31 +02:00
parent cc5df95a1a
commit e23635a1d3
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
9 changed files with 9 additions and 16 deletions

View File

@ -48,15 +48,8 @@ update`.
### Compiler ### Compiler
Vieter compiles with the standard Vlang compiler. However, I do maintain a I used to maintain a mirror that tracked the latest master, but nowadays, I
[mirror](https://git.rustybever.be/vieter-v/v). This is to ensure my CI does solely target V 0.3 as a compiler.
not break without reason, as I control when & how frequently the mirror is
updated to reflect the official repository.
If you encounter issues using the latest V compiler, try using my mirror
instead. `make v` will clone the repository & build the mirror. Afterwards,
prepending any make command with `V_PATH=v/v` tells make to use the locally
compiled mirror instead.
## Contributing ## Contributing

View File

@ -2,7 +2,7 @@ module client
import net.http { Method } import net.http { Method }
import net.urllib import net.urllib
import response { Response } import web.response { Response }
import json import json
pub struct Client { pub struct Client {

View File

@ -2,7 +2,7 @@ module client
import models { BuildLog, BuildLogFilter } import models { BuildLog, BuildLogFilter }
import net.http { Method } import net.http { Method }
import response { Response } import web.response { Response }
import time import time
// get_build_logs returns all build logs. // get_build_logs returns all build logs.

View File

@ -2,7 +2,7 @@ module client
import models { Target, TargetFilter } import models { Target, TargetFilter }
import net.http { Method } import net.http { Method }
import response { Response } import web.response { Response }
// get_targets returns a list of targets, given a filter object. // get_targets returns a list of targets, given a filter object.
pub fn (c &Client) get_targets(filter TargetFilter) ?[]Target { pub fn (c &Client) get_targets(filter TargetFilter) ?[]Target {

View File

@ -3,7 +3,7 @@ module server
import web import web
import net.http import net.http
import net.urllib import net.urllib
import response { new_data_response, new_response } import web.response { new_data_response, new_response }
import db import db
import time import time
import os import os

View File

@ -2,7 +2,7 @@ module server
import web import web
import net.http import net.http
import response { new_data_response, new_response } import web.response { new_data_response, new_response }
import db import db
import models { Target, TargetArch, TargetFilter } import models { Target, TargetArch, TargetFilter }

View File

@ -7,7 +7,7 @@ import time
import rand import rand
import util import util
import net.http import net.http
import response { new_response } import web.response { new_response }
// healthcheck just returns a string, but can be used to quickly check if the // healthcheck just returns a string, but can be used to quickly check if the
// server is still responsive. // server is still responsive.

View File

@ -2,7 +2,7 @@ module server
import web import web
import net.http import net.http
import response { new_response } import web.response { new_response }
// delete_package tries to remove the given package. // delete_package tries to remove the given package.
['/:repo/:arch/:pkg'; delete] ['/:repo/:arch/:pkg'; delete]