Documentation
¶
Index ¶
- Variables
- type Claims
- func (*Claims) Descriptor() ([]byte, []int)
- func (m *Claims) GetExpiresAt() *time.Time
- func (m *Claims) GetTokenID() *UUID
- func (m *Claims) GetUserID() *UUID
- func (m *Claims) Marshal() (dAtA []byte, err error)
- func (m *Claims) MarshalTo(dAtA []byte) (int, error)
- func (*Claims) ProtoMessage()
- func (m *Claims) Reset()
- func (m *Claims) Size() (n int)
- func (m *Claims) String() string
- func (m *Claims) Unmarshal(dAtA []byte) error
- func (m *Claims) XXX_DiscardUnknown()
- func (m *Claims) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claims) XXX_Merge(src proto.Message)
- func (m *Claims) XXX_Size() int
- func (m *Claims) XXX_Unmarshal(b []byte) error
- type UUID
- func (*UUID) Descriptor() ([]byte, []int)
- func (m *UUID) Marshal() (dAtA []byte, err error)
- func (u UUID) MarshalGQL(w io.Writer)
- func (m *UUID) MarshalTo(dAtA []byte) (int, error)
- func (*UUID) ProtoMessage()
- func (m *UUID) Reset()
- func (m *UUID) Size() (n int)
- func (m *UUID) String() string
- func (m *UUID) Unmarshal(dAtA []byte) error
- func (u UUID) UnmarshalGQL(v interface{}) error
- func (m *UUID) XXX_DiscardUnknown()
- func (m *UUID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UUID) XXX_Merge(src proto.Message)
- func (m *UUID) XXX_Size() int
- func (m *UUID) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { UserID *UUID `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` TokenID *UUID `protobuf:"bytes,2,opt,name=tokenID,proto3" json:"tokenID,omitempty"` ExpiresAt *time.Time `protobuf:"bytes,3,opt,name=expiresAt,proto3,stdtime" json:"expiresAt,omitempty"` }
func ClaimsFromJWT ¶
ClaimsFromJWT parses and returns the necessary fields from a jwt.Claims object.
func (*Claims) Descriptor ¶
func (*Claims) GetExpiresAt ¶
func (*Claims) GetTokenID ¶
func (*Claims) ProtoMessage ¶
func (*Claims) ProtoMessage()
func (*Claims) XXX_DiscardUnknown ¶
func (m *Claims) XXX_DiscardUnknown()
func (*Claims) XXX_Marshal ¶
func (*Claims) XXX_Unmarshal ¶
type UUID ¶
type UUID struct {
Uuid *github_com_issho_ni_issho_internal_pkg_uuid.UUID `protobuf:"bytes,1,opt,name=uuid,proto3,customtype=github.com/issho-ni/issho/internal/pkg/uuid.UUID" json:"uuid,omitempty"`
}
func (*UUID) Descriptor ¶
func (UUID) MarshalGQL ¶
MarshalGQL implements the graphql.Marshal interface.
func (*UUID) ProtoMessage ¶
func (*UUID) ProtoMessage()
func (UUID) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Unmarshal interface.
func (*UUID) XXX_DiscardUnknown ¶
func (m *UUID) XXX_DiscardUnknown()
func (*UUID) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.