Documentation ¶
Index ¶
- func NewRenderContextRepoComment(ctx context.Context, repo *repo_model.Repository, opts ...RepoCommentOptions) *markup.RenderContext
- func NewRenderContextRepoFile(ctx context.Context, repo *repo_model.Repository, opts ...RepoFileOptions) *markup.RenderContext
- func NewRenderContextRepoWiki(ctx context.Context, repo *repo_model.Repository, opts ...RepoWikiOptions) *markup.RenderContext
- func NewRenderContextSimpleDocument(ctx context.Context, baseLink string) *markup.RenderContext
- type RepoComment
- type RepoCommentOptions
- type RepoFile
- type RepoFileOptions
- type RepoWiki
- type RepoWikiOptions
- type SimpleDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderContextRepoComment ¶
func NewRenderContextRepoComment(ctx context.Context, repo *repo_model.Repository, opts ...RepoCommentOptions) *markup.RenderContext
func NewRenderContextRepoFile ¶
func NewRenderContextRepoFile(ctx context.Context, repo *repo_model.Repository, opts ...RepoFileOptions) *markup.RenderContext
func NewRenderContextRepoWiki ¶
func NewRenderContextRepoWiki(ctx context.Context, repo *repo_model.Repository, opts ...RepoWikiOptions) *markup.RenderContext
func NewRenderContextSimpleDocument ¶
func NewRenderContextSimpleDocument(ctx context.Context, baseLink string) *markup.RenderContext
Types ¶
type RepoComment ¶
type RepoComment struct {
// contains filtered or unexported fields
}
func (*RepoComment) CleanUp ¶
func (r *RepoComment) CleanUp()
func (*RepoComment) IsCommitIDExisting ¶
func (r *RepoComment) IsCommitIDExisting(commitID string) bool
func (*RepoComment) ResolveLink ¶
func (r *RepoComment) ResolveLink(link string, likeType markup.LinkType) (finalLink string)
type RepoCommentOptions ¶
type RepoFile ¶
type RepoFile struct {
// contains filtered or unexported fields
}
func (*RepoFile) IsCommitIDExisting ¶
type RepoFileOptions ¶
type RepoWiki ¶
type RepoWiki struct {
// contains filtered or unexported fields
}
func (*RepoWiki) IsCommitIDExisting ¶
type RepoWikiOptions ¶
type SimpleDocument ¶
type SimpleDocument struct { *markup.SimpleRenderHelper // contains filtered or unexported fields }
func (*SimpleDocument) ResolveLink ¶
func (r *SimpleDocument) ResolveLink(link string, likeType markup.LinkType) string
Click to show internal directories.
Click to hide internal directories.