Documentation ¶
Index ¶
- Constants
- func NewCreateTokenParams(tokenDto *dto.TokenDto) db.CreateTokenParams
- type TokenResolver
- func (r *TokenResolver) AuthorizeToken(rw http.ResponseWriter, request *http.Request)
- func (r *TokenResolver) CreateTokenDto(ctx context.Context, token db.Token) *dto.TokenDto
- func (r *TokenResolver) CreateTokenListDto(ctx context.Context, tokens []db.Token) []render.Renderer
- func (r *TokenResolver) GenerateAuthID(ctx context.Context) (string, error)
- func (r *TokenResolver) GenerateUid(ctx context.Context) (string, error)
- func (r *TokenResolver) ListTokens(rw http.ResponseWriter, request *http.Request)
- func (r *TokenResolver) PushToken(ctx context.Context, httpMethod string, uid string, tokenDto *dto.TokenDto)
- func (r *TokenResolver) ReplaceToken(ctx context.Context, userId int64, tokenAllowed db.TokenAllowedType, ...) *db.Token
- func (r *TokenResolver) TokenContext(next http.Handler) http.Handler
- func (r *TokenResolver) UnmarshalDto(body io.ReadCloser) (*dto.TokenDto, error)
- func (r *TokenResolver) UnmarshalPullDto(body io.ReadCloser) (*transportation.OcpiResponse, error)
Constants ¶
View Source
const (
X_LIMIT = 1000
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateTokenParams ¶
func NewCreateTokenParams(tokenDto *dto.TokenDto) db.CreateTokenParams
Types ¶
type TokenResolver ¶
type TokenResolver struct { Repository token.TokenRepository OcpiService *transportation.OcpiService TokenAuthorizationResolver *tokenauthorization.TokenAuthorizationResolver VersionDetailResolver *versiondetail.VersionDetailResolver }
func NewResolver ¶
func NewResolver(repositoryService *db.RepositoryService, services *service.ServiceResolver) *TokenResolver
func (*TokenResolver) AuthorizeToken ¶
func (r *TokenResolver) AuthorizeToken(rw http.ResponseWriter, request *http.Request)
func (*TokenResolver) CreateTokenDto ¶
func (*TokenResolver) CreateTokenListDto ¶
func (*TokenResolver) GenerateAuthID ¶
func (r *TokenResolver) GenerateAuthID(ctx context.Context) (string, error)
func (*TokenResolver) GenerateUid ¶ added in v0.4.2
func (r *TokenResolver) GenerateUid(ctx context.Context) (string, error)
func (*TokenResolver) ListTokens ¶
func (r *TokenResolver) ListTokens(rw http.ResponseWriter, request *http.Request)
func (*TokenResolver) ReplaceToken ¶
func (*TokenResolver) TokenContext ¶
func (r *TokenResolver) TokenContext(next http.Handler) http.Handler
func (*TokenResolver) UnmarshalDto ¶
func (r *TokenResolver) UnmarshalDto(body io.ReadCloser) (*dto.TokenDto, error)
func (*TokenResolver) UnmarshalPullDto ¶
func (r *TokenResolver) UnmarshalPullDto(body io.ReadCloser) (*transportation.OcpiResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.