Skip to content

Commit

Permalink
feat: rename to samuelncui
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelncui committed Sep 22, 2023
1 parent 14e725e commit 6a58412
Show file tree
Hide file tree
Showing 57 changed files with 349 additions and 167 deletions.
6 changes: 3 additions & 3 deletions apis/api.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package apis

import (
"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/executor"
"github.com/abc950309/tapewriter/library"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/executor"
"github.com/samuelncui/tapewriter/library"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions apis/converts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path/filepath"
"time"

"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/executor"
"github.com/abc950309/tapewriter/library"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/executor"
"github.com/samuelncui/tapewriter/library"
)

func convertFiles(files ...*library.File) []*entity.File {
Expand Down
2 changes: 1 addition & 1 deletion apis/device_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) DeviceList(ctx context.Context, req *entity.DeviceListRequest) (*entity.DeviceListReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/file_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
mapset "github.com/deckarep/golang-set/v2"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) FileDelete(ctx context.Context, req *entity.FileDeleteRequest) (*entity.FileDeleteReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/file_edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path"
"strings"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) FileEdit(ctx context.Context, req *entity.FileEditRequest) (*entity.FileEditReply, error) {
Expand Down
4 changes: 2 additions & 2 deletions apis/file_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"errors"

"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/library"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/library"
)

func (api *API) FileGet(ctx context.Context, req *entity.FileGetRequest) (*entity.FileGetReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/file_list_parents.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) FileListParents(ctx context.Context, req *entity.FileListParentsRequest) (*entity.FileListParentsReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/file_mkdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io/fs"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) FileMkdir(ctx context.Context, req *entity.FileMkdirRequest) (*entity.FileMkdirReply, error) {
Expand Down
4 changes: 2 additions & 2 deletions apis/job_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/executor"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/executor"
)

func (api *API) JobCreate(ctx context.Context, req *entity.JobCreateRequest) (*entity.JobCreateReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/job_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) JobDelete(ctx context.Context, req *entity.JobDeleteRequest) (*entity.JobDeleteReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/job_display.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion apis/job_get_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) JobGetLog(ctx context.Context, req *entity.JobGetLogRequest) (*entity.JobGetLogReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/job_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) JobList(ctx context.Context, req *entity.JobListRequest) (*entity.JobListReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/job_next.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) JobNext(ctx context.Context, req *entity.JobNextRequest) (*entity.JobNextReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/library_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) LibraryExport(ctx context.Context, req *entity.LibraryExportRequest) (*entity.LibraryExportReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/source_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path"
"strings"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) SourceList(ctx context.Context, req *entity.SourceListRequest) (*entity.SourceListReply, error) {
Expand Down
2 changes: 1 addition & 1 deletion apis/tape_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apis
import (
"context"

"github.com/abc950309/tapewriter/entity"
"github.com/samuelncui/tapewriter/entity"
)

func (api *API) TapeDelete(ctx context.Context, req *entity.TapeDeleteRequest) (*entity.TapeDeleteReply, error) {
Expand Down
4 changes: 2 additions & 2 deletions apis/tape_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/library"
"github.com/samber/lo"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/library"
)

func (api *API) TapeList(ctx context.Context, req *entity.TapeListRequest) (*entity.TapeListReply, error) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/tape-export/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"os"

"github.com/abc950309/tapewriter/external"
"github.com/abc950309/tapewriter/library"
"github.com/abc950309/tapewriter/resource"
"github.com/samuelncui/tapewriter/external"
"github.com/samuelncui/tapewriter/library"
"github.com/samuelncui/tapewriter/resource"
)

func main() {
Expand Down
12 changes: 6 additions & 6 deletions cmd/tape-httpd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import (
"runtime/debug"
"time"

"github.com/abc950309/tapewriter/apis"
"github.com/abc950309/tapewriter/entity"
"github.com/abc950309/tapewriter/executor"
"github.com/abc950309/tapewriter/library"
"github.com/abc950309/tapewriter/resource"
"github.com/abc950309/tapewriter/tools"
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/recovery"
"github.com/improbable-eng/grpc-web/go/grpcweb"
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"github.com/rifflock/lfshook"
"github.com/samuelncui/tapewriter/apis"
"github.com/samuelncui/tapewriter/entity"
"github.com/samuelncui/tapewriter/executor"
"github.com/samuelncui/tapewriter/library"
"github.com/samuelncui/tapewriter/resource"
"github.com/samuelncui/tapewriter/tools"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
Expand Down
2 changes: 1 addition & 1 deletion cmd/tape-httpd/tape-writer.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=Tape Writer Service
Documentation=https://github.com/abc950309/tapewriter/
Documentation=https://github.com/samuelncui/tapewriter/
After=network.target

[Service]
Expand Down
6 changes: 3 additions & 3 deletions cmd/tape-import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"os"

"github.com/abc950309/tapewriter/external"
"github.com/abc950309/tapewriter/library"
"github.com/abc950309/tapewriter/resource"
"github.com/samuelncui/tapewriter/external"
"github.com/samuelncui/tapewriter/library"
"github.com/samuelncui/tapewriter/resource"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion entity/copy_status.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package copy_status;

option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

enum CopyStatus {
DRAFT = 0;
Expand Down
2 changes: 1 addition & 1 deletion entity/file.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package file;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

message File {
int64 id = 1;
Expand Down
2 changes: 1 addition & 1 deletion entity/job.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package job;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

import "job_archive.proto";
import "job_restore.proto";
Expand Down
2 changes: 1 addition & 1 deletion entity/job_archive.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package job_archive;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

import "source.proto";

Expand Down
31 changes: 11 additions & 20 deletions entity/job_restore.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions entity/job_restore.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package job_restore;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

import "copy_status.proto";

Expand Down Expand Up @@ -65,6 +65,4 @@ message JobRestoreDisplay {

optional int64 speed = 5;
int64 start_time = 6;

bytes logs = 17;
}
2 changes: 1 addition & 1 deletion entity/library_entity_type.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package library_entity_type;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

enum LibraryEntityType {
NONE = 0;
Expand Down
2 changes: 1 addition & 1 deletion entity/position.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package position;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

message Position {
int64 id = 1;
Expand Down
2 changes: 1 addition & 1 deletion entity/service.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package service;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

import "job.proto";
import "file.proto";
Expand Down
2 changes: 1 addition & 1 deletion entity/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package entity
import (
"path"

"github.com/abc950309/acp"
"github.com/samuelncui/acp"
)

func NewSourceFromACPJob(job *acp.Job) *Source {
Expand Down
2 changes: 1 addition & 1 deletion entity/source.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package source;

option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

import "copy_status.proto";

Expand Down
2 changes: 1 addition & 1 deletion entity/tape.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";
package tape;
option go_package = "github.com/abc950309/tapewriter/entity";
option go_package = "github.com/samuelncui/tapewriter/entity";

message Tape {
int64 id = 1;
Expand Down
Loading

0 comments on commit 6a58412

Please sign in to comment.