Files
threshold/internal/target/ids.go
T
2020-08-26 13:58:46 -04:00

20 lines
294 B
Go

package target
import (
"fmt"
"github.com/hashicorp/boundary/internal/db"
)
const (
TcpTargetPrefix = "ttcp"
)
func newTcpTargetId() (string, error) {
id, err := db.NewPublicId(TcpTargetPrefix)
if err != nil {
return "", fmt.Errorf("new tcp target id: %w", err)
}
return id, nil
}