Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit ecd0839

Browse files
author
noah
committed
Add license file of OSS version
1 parent fca4143 commit ecd0839

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

internal/interactor/license.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Copyright 2021 Gitploy.IO Inc. All rights reserved.
2+
// Use of this source code is governed by the Gitploy Non-Commercial License
3+
// that can be found in the LICENSE file.
4+
5+
// +build !oss
6+
17
package interactor
28

39
import (

internal/interactor/license_oss.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// +build oss
2+
3+
package interactor
4+
5+
import (
6+
"context"
7+
8+
"github.com/gitploy-io/gitploy/vo"
9+
)
10+
11+
func (i *Interactor) GetLicense(ctx context.Context) (*vo.License, error) {
12+
return vo.NewOSSLicense(), nil
13+
}

0 commit comments

Comments
 (0)