Categorygithub.com/best-expendables-v2/user-service-client
modulepackage
0.0.0-20231009084849-ae08e5a7a35e
Repository: https://github.com/best-expendables-v2/user-service-client.git
Documentation: pkg.go.dev

# README

user-service-go-client

=========== User service go client

Installation

go get github.com/best-expendables-v2/user-service-client

# Functions

No description provided by the author
ContextWithToken add user token to context.
ContextWithUser add user to context.
GetCurrentUserFromContext return user from context or nil.
GetTokenFromContext return token from context, empty string if token not exists.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SubscribeRedis returns PubSub implemented on top of redis.

# Constants

No description provided by the author
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.
User roles which should be identical with user-service.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Use this one for your consumers and other backend tasks this holder will automatically request a new token if the old one expired.
Message pubsub message from user service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Use this one with token from auth middleware this holder doesn't retry to obtain new token.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PubSub allows to subscribe to user service messages It's NOT safe for concurrent use by multiple goroutines.
No description provided by the author