khumu

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package khumu is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	API_TIMEOUT = 10 * time.Second
)

Functions

This section is empty.

Types

type IsAuthorReq

type IsAuthorReq struct {
	Author string `json:"author"`
}

type IsAuthorResp

type IsAuthorResp struct {
	Data struct {
		IsAuthor bool `json:"is_author"`
	} `json:"data"`
}

type KhumuAPIAdapter

type KhumuAPIAdapter interface {
	IsAuthor(articleID int, authorID string) <-chan bool
}

KhumuAPIAdapter 는 khumu의 API를 바탕으로한 마이크로서비스간의 통신을 위한 struct

func NewKhumuAPIAdapter

func NewKhumuAPIAdapter() KhumuAPIAdapter

type KhumuAPIAdapterImpl

type KhumuAPIAdapterImpl struct {
	CommandCenterRootURL string
}

func (*KhumuAPIAdapterImpl) IsAuthor

func (a *KhumuAPIAdapterImpl) IsAuthor(articleID int, authorID string) <-chan bool

IsAuthor 는 concurrent하게 isAuthor 를 이용할 수 있게 해줌.

type MockKhumuAPIAdapter

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

MockKhumuAPIAdapter is a mock of KhumuAPIAdapter interface.

func NewMockKhumuAPIAdapter

func NewMockKhumuAPIAdapter(ctrl *gomock.Controller) *MockKhumuAPIAdapter

NewMockKhumuAPIAdapter creates a new mock instance.

func (*MockKhumuAPIAdapter) EXPECT

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

func (*MockKhumuAPIAdapter) IsAuthor

func (m *MockKhumuAPIAdapter) IsAuthor(articleID int, authorID string) <-chan bool

IsAuthor mocks base method.

type MockKhumuAPIAdapterMockRecorder

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

MockKhumuAPIAdapterMockRecorder is the mock recorder for MockKhumuAPIAdapter.

func (*MockKhumuAPIAdapterMockRecorder) IsAuthor

func (mr *MockKhumuAPIAdapterMockRecorder) IsAuthor(articleID, authorID interface{}) *gomock.Call

IsAuthor indicates an expected call of IsAuthor.

Jump to

Keyboard shortcuts

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