Documentation
¶
Index ¶
- type SessionServer
- func (s *SessionServer) CreateNewSession(ctx context.Context, userId *proto.UserId) (*proto.Session, error)
- func (s *SessionServer) DestroySession(ctx context.Context, sessionValue *proto.SessionValue) (*empty.Empty, error)
- func (s *SessionServer) GetUserIdBySession(ctx context.Context, sessionValue *proto.SessionValue) (*proto.UserId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionServer ¶
func NewSessionServer ¶
func NewSessionServer(sessionUCase session.UseCase) *SessionServer
func (*SessionServer) CreateNewSession ¶
func (*SessionServer) DestroySession ¶
func (s *SessionServer) DestroySession(ctx context.Context, sessionValue *proto.SessionValue) (*empty.Empty, error)
func (*SessionServer) GetUserIdBySession ¶
func (s *SessionServer) GetUserIdBySession(ctx context.Context, sessionValue *proto.SessionValue) (*proto.UserId, error)
Click to show internal directories.
Click to hide internal directories.