Package jschan
    
  
	
	
		
		
		
		
		
		
			
		
		
			
		
			
			
			
			
			
			
				
				- type CatalogResponse
- type Client
-     func NewClient(baseURL string) *Client
-     func (c *Client) GetBanners(ctx context.Context, options *GetBannersOptions) (GetBannersResponse, error)
-     func (c *Client) GetBoardsPublic(ctx context.Context, options *GetBoardsPublicOptions) (*GetBoardsResponse, error)
-     func (c *Client) GetCSRFToken(ctx context.Context) (*GetCSRFTokenResponse, error)
-     func (c *Client) GetCatalog(ctx context.Context, options *GetCatalogOptions) (CatalogResponse, error)
-     func (c *Client) GetCustomPage(ctx context.Context, options *GetCustomPageOptions) (*GetCustomPageResponse, error)
-     func (c *Client) GetGlobalSettings(ctx context.Context) (*CatalogResponse, error)
-     func (c *Client) GetIndex(ctx context.Context, options *GetIndexOptions) (*GetIndexResponse, error)
-     func (c *Client) GetLogs(ctx context.Context, options *GetLogsOptions) (GetLogsResponse, error)
-     func (c *Client) GetLogsList(ctx context.Context, options *GetLogsListOptions) (GetLogsListResponse, error)
-     func (c *Client) GetManageBoards(ctx context.Context, options *GetManageBoardsOptions) (*GetBoardsResponse, error)
-     func (c *Client) GetManageRecent(ctx context.Context, options *GetManageRecentOptions) (GetManageRecentResponse, error)
-     func (c *Client) GetManageReports(ctx context.Context, options *GetManageReportsOptions) (*GetManageReportsResponse, error)
-     func (c *Client) GetOverboardCatalog(ctx context.Context, options *GetOverboardOptions) (*GetOverboardResponse, error)
-     func (c *Client) GetOverboardIndex(ctx context.Context, options *GetOverboardOptions) (*GetOverboardResponse, error)
-     func (c *Client) GetSettings(ctx context.Context, options *GetSettingsOptions) (*GetSettingsResponse, error)
-     func (c *Client) GetThread(ctx context.Context, options *GetThreadOptions) (*GetThreadResponse, error)
-     func (c *Client) GetWebring(ctx context.Context) (*GetWebringResponse, error)
-     func (c *Client) GlobalClear(ctx context.Context, options *GlobalClearOptions) error
-     func (c *Client) Login(ctx context.Context, options *PostLoginOptions) error
-     func (c *Client) MakePost(ctx context.Context, options *MakePostOptions) error
-     func (c *Client) SubmitPostActions(ctx context.Context, options *MakePostOptions) error
- type DynamicResponse
- type GetBannersOptions
- type GetBannersResponse
- type GetBoardsPublicOptions
- type GetBoardsResponse
- type GetCSRFTokenResponse
- type GetCatalogOptions
- type GetCustomPageOptions
- type GetCustomPageResponse
- type GetGlobalSettingsResponse
- type GetIndexOptions
- type GetIndexResponse
- type GetLogsListOptions
- type GetLogsListResponse
- type GetLogsOptions
- type GetLogsResponse
- type GetManageBoardsOptions
- type GetManageRecentOptions
- type GetManageRecentResponse
- type GetManageReportsOptions
- type GetManageReportsResponse
- type GetOverboardOptions
- type GetOverboardResponse
- type GetSettingsOptions
- type GetSettingsResponse
- type GetThreadOptions
- type GetThreadResponse
- type GetWebringResponse
- type GlobalClearOptions
- type GlobalClearTables
-     func (e GlobalClearTables) String() string
- type MakePostOptions
- type PostLoginOptions
- type ReturnHeaders
- type SubmitPostActionsOptions
 
		
		
			Package files
			
			
			
				auth.go
			
				board.go
			
				boardlist.go
			
				global.go
			
				jschan.go
			
				manage.go
			
				overboard.go
			
				post.go
			
				thread.go
			
			
			
		
		 
		 
		
		
		
		
		
			
			
			
			
			type CatalogResponse []models.Post
			
			
			
			
			
			
			
		
			
			
			
			
			type Client struct {
    BaseURL       string
    SessionCookie string
    CsrfToken     string
    HTTPClient    *http.Client
}
			
			
			
			
			
			
				
				
				func NewClient(baseURL string) *Client
				
				
				
			
			
				
				
				func (c *Client) GetBanners(ctx context.Context, options *GetBannersOptions) (GetBannersResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetBoardsPublic(ctx context.Context, options *GetBoardsPublicOptions) (*GetBoardsResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetCSRFToken(ctx context.Context) (*GetCSRFTokenResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetCatalog(ctx context.Context, options *GetCatalogOptions) (CatalogResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetCustomPage(ctx context.Context, options *GetCustomPageOptions) (*GetCustomPageResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetGlobalSettings(ctx context.Context) (*CatalogResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetIndex(ctx context.Context, options *GetIndexOptions) (*GetIndexResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetLogs(ctx context.Context, options *GetLogsOptions) (GetLogsResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetLogsList(ctx context.Context, options *GetLogsListOptions) (GetLogsListResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetManageBoards(ctx context.Context, options *GetManageBoardsOptions) (*GetBoardsResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetManageRecent(ctx context.Context, options *GetManageRecentOptions) (GetManageRecentResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetManageReports(ctx context.Context, options *GetManageReportsOptions) (*GetManageReportsResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetOverboardCatalog(ctx context.Context, options *GetOverboardOptions) (*GetOverboardResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetOverboardIndex(ctx context.Context, options *GetOverboardOptions) (*GetOverboardResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetSettings(ctx context.Context, options *GetSettingsOptions) (*GetSettingsResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetThread(ctx context.Context, options *GetThreadOptions) (*GetThreadResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GetWebring(ctx context.Context) (*GetWebringResponse, error)
				
				
				
				
			
				
				
				func (c *Client) GlobalClear(ctx context.Context, options *GlobalClearOptions) error
				
				
				
				
			
				
				func (*Client) Login
					¶
					
					
				
				func (c *Client) Login(ctx context.Context, options *PostLoginOptions) error
				
				
				
				
			
				
				
				func (c *Client) MakePost(ctx context.Context, options *MakePostOptions) error
				
				
				
				
			
				
				
				func (c *Client) SubmitPostActions(ctx context.Context, options *MakePostOptions) error
				
				
				
				
			
		
			
			
			
			
			type DynamicResponse struct {
    Title    string `json:"title"`
    Message  string `json:"message"`
    Redirect string `json:"redirect,omitempty"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetBannersOptions struct {
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetBannersResponse []string
			
			
			
			
			
			
			
		
			
			
			
			
			type GetBoardsPublicOptions struct {
    Search        string
    Sort          string
    SortDirection string
    Page          int
    LocalFirst    bool
    Sites         []string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetBoardsResponse struct {
    Boards  []models.Board `json:"boards"`
    Page    int            `json:"page"`
    MaxPage int            `json:"maxPage"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetCSRFTokenResponse struct {
    Token string `json:"token"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetCatalogOptions struct {
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetCustomPageOptions struct {
    Board      string
    CustomPage string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetCustomPageResponse struct {
    *models.CustomPage
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetGlobalSettingsResponse struct {
    *models.GlobalSettings
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetIndexOptions struct {
    Board string
    Page  int
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetIndexResponse struct {
    *models.Post
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetLogsListOptions struct {
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetLogsListResponse []models.LogList
			
			
			
			
			
			
			
		
			
			
			
			
			type GetLogsOptions struct {
    Board string
    Date  models.LogDate
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetLogsResponse []models.Log
			
			
			
			
			
			
			
		
			
			
			
			
			type GetManageBoardsOptions struct {
    Search          string `json:"search"`
    Sort            string `json:"sort"`
    SortDirection   string `json:"direction"`
    Page            int    `json:"page"`
    FilterUnlisted  bool   `json:"filter_unlisted"`
    FilterSfw       bool   `json:"filter_sfw"`
    FilterAbandoned bool   `json:"filter_abandoned"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetManageRecentOptions struct {
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetManageRecentResponse []models.Post
			
			
			
			
			
			
			
		
			
			
			
			
			type GetManageReportsOptions struct {
    Page  int
    IP    string
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetManageReportsResponse struct {
    Reports     []models.Post `json:"reports"`
    Page        int           `json:"page"`
    IP          string        `json:"ip"`
    QueryString string        `json:"queryString"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetOverboardOptions struct {
    AddBoards      []string
    RemoveBoards   []string
    IncludeDefault bool
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetOverboardResponse struct {
    Threads []models.Post `json:"threads"`
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetSettingsOptions struct {
    Board string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetSettingsResponse struct {
    *models.BoardSettings
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetThreadOptions struct {
    Board    string
    ThreadId int
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetThreadResponse struct {
    *models.Post
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GetWebringResponse struct {
    *models.Webring
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GlobalClearOptions struct {
    Table   GlobalClearTables
    Confirm bool
}
			
			
			
			
			
			
			
		
			
			
			
			
			type GlobalClearTables string
			
				
				const (
    Sessions    GlobalClearTables = "sessions"
    Blockbypass GlobalClearTables = "blockbypass"
)
			
			
			
			
			
			
			
				
				func (GlobalClearTables) String
					¶
					
					
				
				func (e GlobalClearTables) String() string
				
				
				
				
			
		
			
			
			
			
			type MakePostOptions struct {
    Board         string
    Thread        int
    Name          string
    Message       string
    Subject       string
    Email         string
    PostPassword  string
    Files         []string
    Spoiler       []string
    SpoilerAll    bool
    StripFilename []string
    CustomFlag    string
    Captcha       []string
    Mod           bool
}
			
			
			
			
			
			
			
		
			
			
			
			
			type PostLoginOptions struct {
    Username  string
    Password  string
    Twofactor string
}
			
			
			
			
			
			
			
		
			
			
			
			
			type ReturnHeaders struct {
    *http.Header
}
			
			
			
			
			
			
			
		
			
			
			
			
			type SubmitPostActionsOptions struct {
    CheckedPosts      []string
    CheckedReports    []string
    Board             string
    Captcha           []string
    PostPassword      string
    Ban               bool
    BanGlobal         bool
    BanHalfRange      bool
    BanQuarterRance   bool
    BanReporter       bool
    BanReporterGlobal bool
    BanReason         string
    BanDuration       string
    Move              bool
    MoveToThread      int
    Sticky            int
    ToggleCyclic      bool
    ToggleBumplock    bool
    ToggleLock        bool
    Spoiler           bool
    Delete            bool
    DeleteFiles       bool
    UnlinkFiles       bool
    DeleteIPThread    bool
    DeleteIPBoard     bool
    DeleteIPGlobal    bool
    Dismiss           bool
    DismissGlobal     bool
    Report            bool
    ReportGlobal      bool
    ReportReason      string
    HideName          bool
    NoAppeal          bool
    PreservePost      bool
    LogMessage        string
}
			
			
			
			
			
			
			
		
	
	
	
	
		Subdirectories