Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type Agent ¶
type Agent interface {
VerifyUser(in rest.AuthServiceRequest) (rest.AuthServiceResponse, error)
}
type Service ¶
type Service interface { CreateItem(ctx context.Context, input rest.CreatePostInput, userId string) error GetItem(ctx context.Context, id string) (*model.Post, error) GetItems(ctx context.Context, userId string) ([]model.Post, error) UpdateItem(ctx context.Context, id string, input rest.UpdatePostInput) error DeleteItem(ctx context.Context, id string) error }
Click to show internal directories.
Click to hide internal directories.