Documentation ¶
Overview ¶
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
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-2022 Nikita Ivanovski info@slnt-opp.xyz
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-2022 Nikita Ivanovski info@slnt-opp.xyz
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-2022 Nikita Ivanovski info@slnt-opp.xyz
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 ¶
- Variables
- type BillingServiceServer
- func (s *BillingServiceServer) CreatePlan(ctx context.Context, plan *pb.Plan) (*pb.Plan, error)
- func (s *BillingServiceServer) CreateTransaction(ctx context.Context, t *pb.Transaction) (*pb.Transaction, error)
- func (s *BillingServiceServer) DeletePlan(ctx context.Context, plan *pb.Plan) (*pb.Plan, error)
- func (s *BillingServiceServer) GenTransactionsRoutine(ctx context.Context)
- func (s *BillingServiceServer) GenTransactionsRoutineState() []*hpb.RoutineStatus
- func (s *BillingServiceServer) GetPlan(ctx context.Context, plan *pb.Plan) (*pb.Plan, error)
- func (s *BillingServiceServer) GetTransactions(ctx context.Context, req *pb.GetTransactionsRequest) (*pb.Transactions, error)
- func (s *BillingServiceServer) ListPlans(ctx context.Context, _ *pb.ListRequest) (*pb.ListResponse, error)
- func (s *BillingServiceServer) Reprocess(ctx context.Context, req *pb.ReprocessTransactionsRequest) (*pb.Transactions, error)
- func (s *BillingServiceServer) UpdatePlan(ctx context.Context, plan *pb.Plan) (*pb.Plan, error)
- type RecordsServiceServer
- type Routine
- type RoutineConf
Constants ¶
This section is empty.
Variables ¶
var (
RabbitMQConn string
)
Functions ¶
This section is empty.
Types ¶
type BillingServiceServer ¶
type BillingServiceServer struct { pb.UnimplementedBillingServiceServer // contains filtered or unexported fields }
func NewBillingServiceServer ¶
func NewBillingServiceServer(logger *zap.Logger, db driver.Database) *BillingServiceServer
func (*BillingServiceServer) CreatePlan ¶
func (*BillingServiceServer) CreateTransaction ¶
func (s *BillingServiceServer) CreateTransaction(ctx context.Context, t *pb.Transaction) (*pb.Transaction, error)
func (*BillingServiceServer) DeletePlan ¶
func (*BillingServiceServer) GenTransactionsRoutine ¶
func (s *BillingServiceServer) GenTransactionsRoutine(ctx context.Context)
func (*BillingServiceServer) GenTransactionsRoutineState ¶
func (s *BillingServiceServer) GenTransactionsRoutineState() []*hpb.RoutineStatus
func (*BillingServiceServer) GetTransactions ¶
func (s *BillingServiceServer) GetTransactions(ctx context.Context, req *pb.GetTransactionsRequest) (*pb.Transactions, error)
func (*BillingServiceServer) ListPlans ¶
func (s *BillingServiceServer) ListPlans(ctx context.Context, _ *pb.ListRequest) (*pb.ListResponse, error)
func (*BillingServiceServer) Reprocess ¶
func (s *BillingServiceServer) Reprocess(ctx context.Context, req *pb.ReprocessTransactionsRequest) (*pb.Transactions, error)
func (*BillingServiceServer) UpdatePlan ¶
type RecordsServiceServer ¶
type RecordsServiceServer struct { pb.UnimplementedRecordsServiceServer ConsumerStatus *healthpb.RoutineStatus // contains filtered or unexported fields }
func NewRecordsServiceServer ¶
func NewRecordsServiceServer(logger *zap.Logger, db driver.Database) *RecordsServiceServer
func (*RecordsServiceServer) Consume ¶
func (s *RecordsServiceServer) Consume(ctx context.Context)
type RoutineConf ¶
type RoutineConf struct {
Frequency int `json:"freq"` // Frequency in Seconds
}