Debian Codegraph @

config/key.go

raw symbols SCIP
1 //
2 // Copyright (c) SAS Institute Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 package configscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/
18
19 import "timescip-go gomod github.com/golang/go/src go1.18 time/"
20
21 const defaultTimeoutscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/defaultTimeout. = 60 * timescip-go gomod github.com/golang/go/src go1.18 time/.Secondscip-go gomod github.com/golang/go/src go1.18 time/Second.
22
23 func (keyConf *KeyConfigscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#) Namescip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#Name().() string {
24 return keyConf.namescip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#name.
25 }
26
27 func (keyConf *KeyConfigscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#) GetTimeoutscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#GetTimeout().() timescip-go gomod github.com/golang/go/src go1.18 time/.Durationscip-go gomod github.com/golang/go/src go1.18 time/Duration# {
28 if keyConf.tokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#token. != nil && keyConf.tokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#token..Timeoutscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/TokenConfig#Timeout. != 0 {
29 return timescip-go gomod github.com/golang/go/src go1.18 time/.Secondscip-go gomod github.com/golang/go/src go1.18 time/Second. * timescip-go gomod github.com/golang/go/src go1.18 time/.Durationscip-go gomod github.com/golang/go/src go1.18 time/Duration#(keyConf.tokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#token..Timeoutscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/TokenConfig#Timeout.)
30 }
31 return defaultTimeoutscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/defaultTimeout.
32 }
33
34 func (keyConf *KeyConfigscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#) SetTokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#SetToken().(tokenConf *TokenConfigscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/TokenConfig#) {
35 keyConf.Tokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#Token. = tokenConf.namescip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/TokenConfig#name.
36 keyConf.tokenscip-go gomod github.com/sassoftware/relic/v7 . `github.com/sassoftware/relic/v7/config`/KeyConfig#token. = tokenConf
37 }