Documentation ¶
Index ¶
- type Backend
- func (b *Backend) AddEvent(ctx context.Context, req *pbEvent.AddEventRequest) (*pbEvent.EventDTO, error)
- func (b *Backend) AddUser(ctx context.Context, req *pbUser.AddUserRequest) (*pbUser.UserDTO, error)
- func (b *Backend) DeleteEvent(ctx context.Context, req *pbEvent.DeleteEventRequest) (*pbEvent.DeleteEventRequest, error)
- func (b *Backend) DeleteUser(ctx context.Context, req *pbUser.DeleteUserRequest) (*pbUser.DeleteUserRequest, error)
- func (b *Backend) GetEvent(ctx context.Context, req *pbEvent.GetEventRequest) (*pbEvent.EventDTO, error)
- func (b *Backend) GetUser(ctx context.Context, req *pbUser.GetUserRequest) (*pbUser.UserDTO, error)
- func (b *Backend) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string) *Backend
- func (b *Backend) ListEvents(_ *pbEvent.ListEventsRequest, srv pbEvent.EventService_ListEventsServer) error
- func (b *Backend) ListUsers(_ *pbUser.ListUsersRequest, srv pbUser.UserService_ListUsersServer) error
- func (b *Backend) UpdateEvent(ctx context.Context, req *pbEvent.UpdateEventRequest) (*pbEvent.EventDTO, error)
- func (b *Backend) UpdateUser(ctx context.Context, req *pbUser.UpdateUserRequest) (*pbUser.UserDTO, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend implements the protobuf interface
func (*Backend) AddEvent ¶
func (b *Backend) AddEvent(ctx context.Context, req *pbEvent.AddEventRequest) (*pbEvent.EventDTO, error)
AddEvent : save one event
func (*Backend) DeleteEvent ¶
func (b *Backend) DeleteEvent(ctx context.Context, req *pbEvent.DeleteEventRequest) (*pbEvent.DeleteEventRequest, error)
DeleteEvent delete one event in the database.
func (*Backend) DeleteUser ¶
func (b *Backend) DeleteUser(ctx context.Context, req *pbUser.DeleteUserRequest) (*pbUser.DeleteUserRequest, error)
DeleteUser delete one user in the database.
func (*Backend) GetEvent ¶
func (b *Backend) GetEvent(ctx context.Context, req *pbEvent.GetEventRequest) (*pbEvent.EventDTO, error)
GetEvent : get one event
func (*Backend) Initialize ¶
Initialize : init router and database link
func (*Backend) ListEvents ¶
func (b *Backend) ListEvents(_ *pbEvent.ListEventsRequest, srv pbEvent.EventService_ListEventsServer) error
ListEvents lists all events in the store.
func (*Backend) ListUsers ¶
func (b *Backend) ListUsers(_ *pbUser.ListUsersRequest, srv pbUser.UserService_ListUsersServer) error
ListUsers lists all users in the database.
func (*Backend) UpdateEvent ¶
func (b *Backend) UpdateEvent(ctx context.Context, req *pbEvent.UpdateEventRequest) (*pbEvent.EventDTO, error)
UpdateEvent adds a event to the database
func (*Backend) UpdateUser ¶
func (b *Backend) UpdateUser(ctx context.Context, req *pbUser.UpdateUserRequest) (*pbUser.UserDTO, error)
UpdateUser adds a user to the database
Click to show internal directories.
Click to hide internal directories.