SetSessionToken sets a fixed token for the client. Deprecated: Create a new client using WithSessionToken instead of changing the token after creation.
(token string)
| 200 | // SetSessionToken sets a fixed token for the client. |
| 201 | // Deprecated: Create a new client using WithSessionToken instead of changing the token after creation. |
| 202 | func (c *Client) SetSessionToken(token string) { |
| 203 | c.mu.Lock() |
| 204 | defer c.mu.Unlock() |
| 205 | c.SessionTokenProvider = FixedSessionTokenProvider{SessionToken: token} |
| 206 | } |
| 207 | |
| 208 | func prefixLines(prefix, s []byte) []byte { |
| 209 | ss := bytes.NewBuffer(make([]byte, 0, len(s)*2)) |