ms-auth/internal/sessions/delivery.go
Vyacheslav1557 93eaf89d78 refactor:
2024-10-09 22:07:38 +05:00

15 lines
586 B
Go

package sessions
import (
"context"
sessionv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/proto/session/v1"
"google.golang.org/protobuf/types/known/emptypb"
)
type SessionHandlers interface {
Create(ctx context.Context, req *sessionv1.CreateSessionRequest) (*sessionv1.CreateSessionResponse, error)
Read(ctx context.Context, req *sessionv1.ReadSessionRequest) (*sessionv1.ReadSessionResponse, error)
Update(ctx context.Context, req *sessionv1.UpdateSessionRequest) (*emptypb.Empty, error)
Delete(ctx context.Context, req *sessionv1.DeleteSessionRequest) (*emptypb.Empty, error)
}