whatday

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package whatday is a generated GoMock package.

Index

Constants

View Source
const EndPoint = "https://www.kinenbi.gr.jp/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Title string
	Text  string
	Url   string
}

Article is a struct

func WhatDay added in v1.0.2

func WhatDay(day time.Time) ([]Article, error)

type Client

type Client interface {
	ListPath(ctx context.Context, now time.Time) ([]string, error)
	GetArticle(ctx context.Context, path string) (*Article, error)
}

func NewClient

func NewClient() Client

NewClient create client

type MockClient added in v1.0.1

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

MockClient is a mock of Client interface.

func NewMockClient added in v1.0.1

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT added in v1.0.1

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetArticle added in v1.0.1

func (m *MockClient) GetArticle(ctx context.Context, path string) (*Article, error)

GetArticle mocks base method.

func (*MockClient) ListPath added in v1.0.1

func (m *MockClient) ListPath(ctx context.Context, now time.Time) ([]string, error)

ListPath mocks base method.

type MockClientMockRecorder added in v1.0.1

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetArticle added in v1.0.1

func (mr *MockClientMockRecorder) GetArticle(ctx, path interface{}) *gomock.Call

GetArticle indicates an expected call of GetArticle.

func (*MockClientMockRecorder) ListPath added in v1.0.1

func (mr *MockClientMockRecorder) ListPath(ctx, now interface{}) *gomock.Call

ListPath indicates an expected call of ListPath.

Jump to

Keyboard shortcuts

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