Documentation
¶
Index ¶
- Variables
- type OAuthState
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetAuthorized() bool
- func (x *Session) GetExpiresAt() *timestamp.Timestamp
- func (x *Session) GetUser() string
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_testproto_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OAuthState ¶
type OAuthState struct { RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // contains filtered or unexported fields }
OAuthState contains data associated with a single oauth flow (currently just the url to redirect the user to after authentication completes)
func (*OAuthState) Descriptor
deprecated
func (*OAuthState) Descriptor() ([]byte, []int)
Deprecated: Use OAuthState.ProtoReflect.Descriptor instead.
func (*OAuthState) GetRedirectUrl ¶
func (x *OAuthState) GetRedirectUrl() string
func (*OAuthState) ProtoMessage ¶
func (*OAuthState) ProtoMessage()
func (*OAuthState) ProtoReflect ¶
func (x *OAuthState) ProtoReflect() protoreflect.Message
func (*OAuthState) Reset ¶
func (x *OAuthState) Reset()
func (*OAuthState) String ¶
func (x *OAuthState) String() string
type Session ¶
type Session struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Authorized bool `protobuf:"varint,3,opt,name=authorized,proto3" json:"authorized,omitempty"` // contains filtered or unexported fields }
Session contains data associated with a single user: who that user is and whether they're authenticated & authorized
func (*Session) Descriptor
deprecated
func (*Session) GetAuthorized ¶
func (*Session) GetExpiresAt ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.