service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

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

func NewAccountService

func NewAccountService(system actors.ActorSystem, logger log.Logger, port int) *AccountService

NewAccountService creates an instance of AccountService

func (*AccountService) CreateAccount

func (s *AccountService) CreateAccount(ctx context.Context, c *connect.Request[samplepb.CreateAccountRequest]) (*connect.Response[samplepb.CreateAccountResponse], error)

CreateAccount helps create an account

func (*AccountService) CreditAccount

func (s *AccountService) CreditAccount(ctx context.Context, c *connect.Request[samplepb.CreditAccountRequest]) (*connect.Response[samplepb.CreditAccountResponse], error)

CreditAccount helps credit a given account

func (*AccountService) GetAccount

func (s *AccountService) GetAccount(ctx context.Context, c *connect.Request[samplepb.GetAccountRequest]) (*connect.Response[samplepb.GetAccountResponse], error)

GetAccount helps get an account

func (*AccountService) Start

func (s *AccountService) Start()

Start starts the service

func (*AccountService) Stop

func (s *AccountService) Stop(ctx context.Context) error

Stop stops the service

Jump to

Keyboard shortcuts

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