...

Package internal

import "cloud.google.com/go/logging/internal"
Overview
Index
Subdirectories

Overview ▾

Constants

const (
    // ProdAddr is the production address.
    ProdAddr = "logging.googleapis.com:443"
)

Version is the current tagged release of the library.

const Version = "1.10.0"

Variables

InstrumentOnce guards instrumenting logs one time

var InstrumentOnce = new(sync.Once)

func LogIDFromPath

func LogIDFromPath(parent, path string) string

LogIDFromPath parses and returns the ID from a log path.

func LogPath

func LogPath(parent, logID string) string

LogPath creates a formatted path from a parent and a logID.

func VersionGo

func VersionGo() string

VersionGo returns the Go runtime version. The returned string has no whitespace, suitable for reporting in header.

type ResourceAttributesGetter

ResourceAttributesGetter abstracts environment lookup methods to query for environment variables, metadata attributes and file content.

type ResourceAttributesGetter interface {
    EnvVar(name string) string
    Metadata(path string) string
    ReadAll(path string) string
}

func ResourceAttributes

func ResourceAttributes() ResourceAttributesGetter

ResourceAttributes provides read-only access to the ResourceAtttributesGetter interface implementation.

Subdirectories

Name Synopsis
..