GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 378143...7be145 )
by Victor Hugo
01:18 queued 13s
created

pkg/idempotency/std.go   A

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 2
eloc 7
dl 0
loc 18
ccs 2
cts 2
cp 1
crap 2
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A idempotency.NewStdGenerator 0 2 1
A idempotency.stdGenerator.Generate 0 2 1
1
package idempotency
2
3
import "github.com/google/uuid"
4
5
type stdGenerator struct{}
6
7
// Generate encapsulates the logic to return a string representation of
8
// a unique idempotency key.
9
//
10
// A string representation of a v4 uuid for this implementation.
11
func (ikg stdGenerator) Generate() string {
12 1
	return uuid.New().String()
13
}
14
15
// NewStdGenerator returns an standard and common way of generating
16
// idempotency unique keys.
17
func NewStdGenerator() KeyGenerator {
18 1
	return new(stdGenerator)
19
}
20