ms-auth/internal/sessions/delivery.go

15 lines
586 B
Go
Raw Normal View History

2024-10-09 17:07:38 +00:00
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)
}