testproto

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAuthorized

func (x *Session) GetAuthorized() bool

func (*Session) GetExpiresAt

func (x *Session) GetExpiresAt() *timestamp.Timestamp

func (*Session) GetUser

func (x *Session) GetUser() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

func (x *Session) ProtoReflect() protoreflect.Message

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL