diff --git a/model/limit.go b/model/limit.go index 46f50df1..352b91ca 100644 --- a/model/limit.go +++ b/model/limit.go @@ -10,7 +10,7 @@ type Limiter interface { LimitBuild(*User, *Repo, *Build) error } -// NoLimit impliments the Limiter interface without enforcing any +// NoLimit implements the Limiter interface without enforcing any // actual limits. All limiting functions are no-ops. type NoLimit struct{} diff --git a/model/user.go b/model/user.go index 37ac19af..d961e9f7 100644 --- a/model/user.go +++ b/model/user.go @@ -30,7 +30,7 @@ type User struct { // Secret is the oauth2 token secret. Secret string `json:"-" meddler:"user_secret"` - // Expiry is the token and secret expriation timestamp. + // Expiry is the token and secret expiration timestamp. Expiry int64 `json:"-" meddler:"user_expiry"` // Email is the email address for this user. diff --git a/remote/gerrit/gerrit.go b/remote/gerrit/gerrit.go index 4ddc6a32..94a33978 100644 --- a/remote/gerrit/gerrit.go +++ b/remote/gerrit/gerrit.go @@ -11,7 +11,7 @@ import ( ) // IMPORTANT Gerrit support is not yet implemented. This file is a placeholder -// for future implementaiton. +// for future implementation. // Opts defines configuration options. type Opts struct { @@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) { }, nil } -// Login authenticates an account with Gerrit using oauth authenticaiton. The +// Login authenticates an account with Gerrit using oauth authentication. The // Gerrit account details are returned when the user is successfully authenticated. func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { return nil, nil diff --git a/remote/gitea/gitea.go b/remote/gitea/gitea.go index 30e3cdd2..26ee8ae0 100644 --- a/remote/gitea/gitea.go +++ b/remote/gitea/gitea.go @@ -105,7 +105,7 @@ func New(opts Opts) (remote.Remote, error) { }, nil } -// Login authenticates an account with Gitea using basic authenticaiton. The +// Login authenticates an account with Gitea using basic authentication. The // Gitea account details are returned when the user is successfully authenticated. func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { var ( diff --git a/remote/gogs/gogs.go b/remote/gogs/gogs.go index 97dcf45a..8e2339f8 100644 --- a/remote/gogs/gogs.go +++ b/remote/gogs/gogs.go @@ -52,7 +52,7 @@ func New(opts Opts) (remote.Remote, error) { }, nil } -// Login authenticates an account with Gogs using basic authenticaiton. The +// Login authenticates an account with Gogs using basic authentication. The // Gogs account details are returned when the user is successfully authenticated. func (c *client) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) { var ( diff --git a/server/web/opts.go b/server/web/opts.go index d3e70b05..09d0c6d3 100644 --- a/server/web/opts.go +++ b/server/web/opts.go @@ -12,7 +12,7 @@ type Options struct { // Option configures the website handler. type Option func(*Options) -// WithSync configures the website hanlder with the duration value +// WithSync configures the website handler with the duration value // used to determine if the user account requires synchronization. func WithSync(d time.Duration) Option { return func(o *Options) { @@ -20,7 +20,7 @@ func WithSync(d time.Duration) Option { } } -// WithDir configures the website hanlder with the directory value +// WithDir configures the website handler with the directory value // used to serve the website from the local filesystem. func WithDir(s string) Option { return func(o *Options) { @@ -28,7 +28,7 @@ func WithDir(s string) Option { } } -// WithDocs configures the website hanlder with the documentation +// WithDocs configures the website handler with the documentation // website address, which should be included in the user interface. func WithDocs(s string) Option { return func(o *Options) {