Documentation
¶
Index ¶
- Constants
- func NewMockNotice() rpc.Notice
- func NewNotice(client *resend.Client, from string) rpc.Notice
- func NewRequest[T any](ctx context.Context, msg *T) *connect.Request[T]
- type Article
- func (ext *Article) AddToUser(ctx context.Context, articleID article.ID, userID user.ID) error
- func (ext *Article) Delete(ctx context.Context, articleID article.ID) error
- func (ext *Article) List(ctx context.Context, index value.Index, size value.Size, ...) ([]model.Article, error)
- func (ext *Article) ListByUser(ctx context.Context, userID user.ID, index value.Index, size value.Size, ...) ([]model.Article, error)
- func (ext *Article) RemoveFromUser(ctx context.Context, articleID article.ID, userID user.ID) error
- func (ext *Article) Share(ctx context.Context, url article.URL, title article.Title, ...) (model.Article, error)
- type ArticleFactory
- type Auth
- func (ext *Auth) ChangePassword(ctx context.Context, userID user.ID, password auth.Password) error
- func (ext *Auth) GetEmail(ctx context.Context, userID user.ID) (auth.Email, error)
- func (ext *Auth) SignIn(ctx context.Context, email auth.Email, password auth.Password) (model.User, error)
- func (ext *Auth) SignUp(ctx context.Context, uid user.ID, email auth.Email, password auth.Password) error
- type AuthFactory
- type External
- type Health
- type HealthFactory
- type MockNotice
- type Notice
- type NoticeFactory
- type SignInRequest
- type SignInResponse
- type User
- type UserFactory
Constants ¶
View Source
const ( // HeaderTID トレースIDのヘッダー名. HeaderTID = "tid" // HeaderUID ユーザーIDのヘッダー名. HeaderUID = "uid" )
Variables ¶
This section is empty.
Functions ¶
func NewMockNotice ¶
func NewRequest ¶
Types ¶
type Article ¶
type Article struct {
// contains filtered or unexported fields
}
func NewArticle ¶
func NewArticle( connect articlev1connect.ArticleServiceClient, ) *Article
func (*Article) ListByUser ¶
func (*Article) RemoveFromUser ¶
type ArticleFactory ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) ChangePassword ¶
type AuthFactory ¶
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
func NewHealth ¶
func NewHealth( connect healthv1connect.HealthServiceClient, ) *Health
type HealthFactory ¶
type MockNotice ¶
type MockNotice struct{}
type NoticeFactory ¶
type SignInRequest ¶
type SignInResponse ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser( connect userv1connect.UserServiceClient, ) *User
type UserFactory ¶
Click to show internal directories.
Click to hide internal directories.