oschina

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArticleTypeOriginal string = "1" // 原创
	ArticleTypeReship   string = "4" // 转载

	ContentTypeMarkdown = "3"
	ContentTypeHTML     = "4"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Auth

func (c *Client) Auth(raw string) (string, error)

func (*Client) Name

func (c *Client) Name() string

func (*Client) NewArticle added in v1.0.2

func (c *Client) NewArticle(r io.Reader) error

func (*Client) Publish

func (c *Client) Publish() (string, error)

type TechnicalField

type TechnicalField struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL