Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Package client is a generated GoMock package.
Index ¶
Constants ¶
View Source
const (
UserAgent = "Mozilla/5.0 (compatible)"
)
Variables ¶
View Source
var ( NameRegex = regexp.MustCompile(`[$\\]{?\d+`) ShindanNameRegex = regexp.MustCompile(`[@@].+|[\((].+[\))]`) ShindanTokenRegex = regexp.MustCompile(`<meta[^>]*name="csrf-token"[^>]*content="([\s\S]*?)"[^>]*>`) ShindanResultRegex = regexp.MustCompile(`<textarea[^>]*id="copy-textarea-140"[^>]*>([\s\S]*?)<\/textarea>`) )
Functions ¶
func NewHttpClient ¶
func NewMastodon ¶
func NewMastodon(server, accessToken string) *mastodon.Client
Types ¶
type DB ¶
type MockMpyw ¶
type MockMpyw struct {
// contains filtered or unexported fields
}
MockMpyw is a mock of Mpyw interface.
func NewMockMpyw ¶
func NewMockMpyw(ctrl *gomock.Controller) *MockMpyw
NewMockMpyw creates a new mock instance.
func (*MockMpyw) EXPECT ¶
func (m *MockMpyw) EXPECT() *MockMpywMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMpywMockRecorder ¶
type MockMpywMockRecorder struct {
// contains filtered or unexported fields
}
MockMpywMockRecorder is the mock recorder for MockMpyw.
type MockShindanmaker ¶
type MockShindanmaker struct {
// contains filtered or unexported fields
}
MockShindanmaker is a mock of Shindanmaker interface.
func NewMockShindanmaker ¶
func NewMockShindanmaker(ctrl *gomock.Controller) *MockShindanmaker
NewMockShindanmaker creates a new mock instance.
func (*MockShindanmaker) EXPECT ¶
func (m *MockShindanmaker) EXPECT() *MockShindanmakerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockShindanmakerMockRecorder ¶
type MockShindanmakerMockRecorder struct {
// contains filtered or unexported fields
}
MockShindanmakerMockRecorder is the mock recorder for MockShindanmaker.
Click to show internal directories.
Click to hide internal directories.