...

Source file src/golang.conradwood.net/go-easyops/authremote/create_context.go

Documentation: golang.conradwood.net/go-easyops/authremote

     1  package authremote
     2  
     3  import (
     4  	"context"
     5  	"golang.conradwood.net/go-easyops/tokens"
     6  )
     7  
     8  // get a local context
     9  func getContext() context.Context {
    10  	return tokens.DISContextWithToken()
    11  }
    12  func getContextWithTimeout(secs uint64) context.Context {
    13  	return tokens.DISContextWithTokenAndTimeout(secs)
    14  }
    15  

View as plain text