handlers

package
v0.0.0-...-3014034 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2021 Wei (Sam) Wang <sam.wang.0723@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Wei (Sam) Wang <sam.wang.0723@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Wei (Sam) Wang <sam.wang.0723@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Wei (Sam) Wang <sam.wang.0723@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Wei (Sam) Wang <sam.wang.0723@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	ListDailyClose(
		ctx context.Context,
		req *dto.ListDailyCloseRequest,
	) (*dto.ListDailyCloseResponse, error)
	ListStock(ctx context.Context, req *dto.ListStockRequest) (*dto.ListStockResponse, error)
	ListCategories(ctx context.Context) (*dto.ListCategoriesResponse, error)
	ListSelections(
		ctx context.Context,
		req *dto.ListSelectionRequest,
	) (*dto.ListSelectionResponse, error)
	GetStakeConcentration(
		ctx context.Context,
		req *dto.GetStakeConcentrationRequest,
	) (*domain.StakeConcentration, error)
	ListThreePrimary(
		ctx context.Context,
		req *dto.ListThreePrimaryRequest,
	) (*dto.ListThreePrimaryResponse, error)
	ListeningKafkaInput(ctx context.Context)
	CronjobPresetRealtimeMonitoringKeys(ctx context.Context, schedule string) error
	CrawlingRealTimePrice(ctx context.Context, schedule string) error
	ListPickedStocks(ctx context.Context) (*dto.ListPickedStocksResponse, error)
	InsertPickedStocks(
		ctx context.Context,
		req *dto.InsertPickedStocksRequest,
	) (*dto.InsertPickedStocksResponse, error)
	DeletePickedStocks(
		ctx context.Context,
		req *dto.DeletePickedStocksRequest,
	) (*dto.DeletePickedStocksResponse, error)
	Login(ctx context.Context, req *dto.LoginRequest) *dto.LoginResponse
	Logout(ctx context.Context) *dto.LogoutResponse
	CreateUser(ctx context.Context, req *dto.CreateUserRequest) (*dto.CreateUserResponse, error)
	ListUsers(ctx context.Context, req *dto.ListUsersRequest) (*dto.ListUsersResponse, error)
	GetBalance(ctx context.Context) (*domain.BalanceView, error)
	CreateTransaction(
		ctx context.Context,
		req *dto.CreateTransactionRequest,
	) (*dto.CreateTransactionResponse, error)
	CreateOrder(ctx context.Context, req *dto.CreateOrderRequest) (*dto.CreateOrderResponse, error)
	ListOrders(ctx context.Context, req *dto.ListOrderRequest) (*dto.ListOrderResponse, error)
}

func New

func New(dataService services.IService, logger *zerolog.Logger) IHandler

type RecaptchaResponse

type RecaptchaResponse struct {
	ChallengeTS string   `json:"challenge_ts"`
	Hostname    string   `json:"hostname"`
	ErrorCodes  []string `json:"error-codes"`
	Success     bool     `json:"success"`
}

Jump to

Keyboard shortcuts

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