Skip to content

Commit ea653f6

Browse files
committed
chore: 调整目录结构
1 parent 27ee1d3 commit ea653f6

File tree

268 files changed

+175
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+175
-169
lines changed

cmd/intercmd.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/pocketbase/pocketbase/core"
1313
"github.com/spf13/cobra"
1414

15-
"github.com/certimate-go/certimate/internal/certapply"
15+
"github.com/certimate-go/certimate/internal/certacme"
1616
"github.com/certimate-go/certimate/internal/tools/mproc"
1717
)
1818

@@ -39,12 +39,12 @@ func internalCertApplyCommand(app core.App) *cobra.Command {
3939
SilenceUsage: true,
4040
Run: func(cmd *cobra.Command, args []string) {
4141
type InData struct {
42-
Account *certapply.ACMEAccount `json:"account,omitempty"`
43-
Request *certapply.ObtainCertificateRequest `json:"request,omitempty"`
42+
Account *certacme.ACMEAccount `json:"account,omitempty"`
43+
Request *certacme.ObtainCertificateRequest `json:"request,omitempty"`
4444
}
4545

4646
type OutData struct {
47-
Response *certapply.ObtainCertificateResponse `json:"response"`
47+
Response *certacme.ObtainCertificateResponse `json:"response"`
4848
}
4949

5050
mreceiver := mproc.NewReceiver(func(ctx context.Context, params *InData) (*OutData, error) {
@@ -60,7 +60,7 @@ func internalCertApplyCommand(app core.App) *cobra.Command {
6060
// see: /internal/tools/mproc/sender.go
6161
legolog.Logger = log.New(os.Stdout, "", 0)
6262

63-
client, err := certapply.NewACMEClientWithAccount(params.Account, func(c *lego.Config) error {
63+
client, err := certacme.NewACMEClientWithAccount(params.Account, func(c *lego.Config) error {
6464
c.UserAgent = "certimate"
6565
c.Certificate.KeyType = params.Request.PrivateKeyType
6666
return nil

cmd/serve_nonwindows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !windows
1+
//go:build !windows
22
// +build !windows
33

44
package cmd

cmd/serve_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build windows
1+
//go:build windows
22
// +build windows
33

44
package cmd

cmd/winsc_nonwindows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !windows
1+
//go:build !windows
22
// +build !windows
33

44
package cmd

cmd/winsc_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build windows
1+
//go:build windows
22
// +build windows
33

44
package cmd
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package certapply
1+
package certacme
22

33
import (
44
"context"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package certifiers
1+
package certifiers
22

33
import (
44
"fmt"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)