Documentation
¶
Index ¶
- Constants
- Variables
- func CreateJwtToken(t *testing.T, claims jwt.MapClaims) string
- func HubID() string
- func MakeAuthURL() string
- func MakeAuthorizationConfig() validator.Config
- func MakeDeviceAuthorization() oauth2.Config
- func MakeEventsStoreMongoDBConfig() mongodb.Config
- func MakeGrpcClientConfig(address string) grpcClient.Config
- func MakeGrpcServerConfig(address string) grpcServer.Config
- func MakeHttpClientConfig() httpClient.Config
- func MakeListenerConfig(address string) listener.Config
- func MakeOpenTelemetryCollectorClient() otelClient.Config
- func MakePublisherConfig() natsClient.ConfigPublisher
- func MakeSubscriberConfig() natsClient.Config
- func MakeTLSClientConfig() client.Config
- func MakeTLSServerConfig() server.Config
Constants ¶
View Source
const ( IDENTITY_STORE_HOST = "localhost:20000" IDENTITY_STORE_DB = "ownersDevices" GW_HOST = "localhost:20002" RESOURCE_AGGREGATE_HOST = "localhost:20003" RESOURCE_DIRECTORY_HOST = "localhost:20004" CERTIFICATE_AUTHORITY_HOST = "localhost:20011" GRPC_HOST = "localhost:20005" C2C_CONNECTOR_HOST = "localhost:20006" C2C_CONNECTOR_DB = "cloud2cloudConnector" C2C_GW_HOST = "localhost:20007" C2C_GW_DB = "cloud2cloudGateway" OAUTH_SERVER_HOST = "localhost:20009" TEST_TIMEOUT = time.Second * 30 OAUTH_MANAGER_CLIENT_ID = "test" OAUTH_MANAGER_AUDIENCE = "localhost" HTTP_GW_HOST = "localhost:20010" DEVICE_PROVIDER = "plgd" OPENTELEMETRY_COLLECTOR_HOST = "localhost:55690" )
View Source
const JWTSecret = "secret"
Variables ¶
View Source
var C2C_CONNECTOR_EVENTS_URL = "https://" + C2C_CONNECTOR_HOST + c2curi.Events
View Source
var C2C_CONNECTOR_OAUTH_CALLBACK = "https://" + C2C_CONNECTOR_HOST + c2curi.OAuthCallback
View Source
var CA_POOL = os.Getenv("LISTEN_FILE_CA_POOL")
View Source
var CERT_FILE = os.Getenv("LISTEN_FILE_CERT_DIR_PATH") + "/" + os.Getenv("LISTEN_FILE_CERT_NAME")
View Source
var KEY_FILE = os.Getenv("LISTEN_FILE_CERT_DIR_PATH") + "/" + os.Getenv("LISTEN_FILE_CERT_KEY_NAME")
View Source
var MONGODB_URI = "mongodb://localhost:27017"
View Source
var NATS_URL = "nats://localhost:4222"
View Source
var OAUTH_MANAGER_ENDPOINT_AUTHURL = "https://" + OAUTH_SERVER_HOST + uri.Authorize
View Source
var OAUTH_MANAGER_ENDPOINT_TOKENURL = "https://" + OAUTH_SERVER_HOST + uri.Token
View Source
var OWNER_CLAIM = "sub"
Functions ¶
func CreateJwtToken ¶
func MakeAuthURL ¶
func MakeAuthURL() string
func MakeAuthorizationConfig ¶
func MakeDeviceAuthorization ¶
func MakeGrpcClientConfig ¶
func MakeGrpcClientConfig(address string) grpcClient.Config
func MakeGrpcServerConfig ¶
func MakeGrpcServerConfig(address string) grpcServer.Config
func MakeHttpClientConfig ¶
func MakeHttpClientConfig() httpClient.Config
func MakeListenerConfig ¶
func MakeOpenTelemetryCollectorClient ¶ added in v2.4.0
func MakeOpenTelemetryCollectorClient() otelClient.Config
func MakePublisherConfig ¶
func MakePublisherConfig() natsClient.ConfigPublisher
func MakeSubscriberConfig ¶
func MakeSubscriberConfig() natsClient.Config
func MakeTLSClientConfig ¶
func MakeTLSServerConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.