session

package
v0.0.0-...-4f702ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalBinary

func MarshalBinary(e *session.Session) ([]byte, error)

func SessionProto2Session

func SessionProto2Session(sessionProto *Session) (s *session.Session)

func UnmarshalBinary

func UnmarshalBinary(data []byte) (*session.Session, error)

Types

type Session

type Session struct {
	ID                   string                   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	AccountSettings      *account.AccountSettings `protobuf:"bytes,2,opt,name=AccountSettings,proto3" json:"AccountSettings,omitempty"`
	JwtClaims            *jwt.Claims              `protobuf:"bytes,3,opt,name=JwtClaims,proto3" json:"JwtClaims,omitempty"`
	User                 *user.User               `protobuf:"bytes,4,opt,name=User,proto3" json:"User,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func Session2SessionProto

func Session2SessionProto(s *session.Session) (sessionProto *Session)

func (*Session) Descriptor

func (*Session) Descriptor() ([]byte, []int)

func (*Session) GetAccountSettings

func (m *Session) GetAccountSettings() *account.AccountSettings

func (*Session) GetID

func (m *Session) GetID() string

func (*Session) GetJwtClaims

func (m *Session) GetJwtClaims() *jwt.Claims

func (*Session) GetUser

func (m *Session) GetUser() *user.User

func (*Session) MarshalBinary

func (e *Session) MarshalBinary() (data []byte, err error)

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) UnmarshalBinary

func (e *Session) UnmarshalBinary(data []byte) (err error)

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Session) XXX_Merge

func (m *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

func (m *Session) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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