Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatorService ¶
type CalculatorService interface { //concerto:method grpc:"Calculate" //concerto:method thrift:"Calculate,exceptions=1:concerto.rpc.status.Error" //concerto:method http:"POST /calculate,additional_routes=POST calculate/{op}/{num1}/{num2}" Calculate( ctx context.Context, op Op, num1 int64, num2 int64, ) ( result int64, err error, ) }
func NewCalculatorService ¶
func NewCalculatorService( logger *slog.Logger, ) CalculatorService
NewCalculatorService constructs and returns an implementation of CalculatorService.
type Op ¶
type Op int32
Op represents the type of arithmetic operation.
func OpFromString ¶
func (Op) MarshalJSON ¶
func (Op) MarshalText ¶
func (*Op) UnmarshalJSON ¶
func (*Op) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.