Documentation ¶
Overview ¶
Package botsession implements marshaling of Bot Session protos.
Index ¶
- Constants
- func DebugInfo(ctx context.Context, backendVer string) *internalspb.DebugInfo
- func FormatForDebug(s *internalspb.Session) string
- func Marshal(s *internalspb.Session, secret *hmactoken.Secret) ([]byte, error)
- func Unmarshal(tok []byte, secret *hmactoken.Secret) (*internalspb.Session, error)
Constants ¶
View Source
const Expiry = time.Hour
Expiry is how long a new Swarming session token will last.
Variables ¶
This section is empty.
Functions ¶
func DebugInfo ¶
func DebugInfo(ctx context.Context, backendVer string) *internalspb.DebugInfo
DebugInfo generates new DebugInfo proto identifying the current request.
func FormatForDebug ¶
func FormatForDebug(s *internalspb.Session) string
FormatForDebug formats the session proto for the debug log.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.