s3_streaming_with_golang

package
v0.0.0-...-e06c09a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Transaction_Currency_name = map[int32]string{
		0: "EUR",
		1: "USD",
	}
	Transaction_Currency_value = map[string]int32{
		"EUR": 0,
		"USD": 1,
	}
)

Enum value maps for Transaction_Currency.

View Source
var File_transaction_proto protoreflect.FileDescriptor
View Source
var TransactionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "transactions.TransactionService",
	HandlerType: (*TransactionServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetUserTransactions",
			Handler:       _TransactionService_GetUserTransactions_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "transaction.proto",
}

TransactionService_ServiceDesc is the grpc.ServiceDesc for TransactionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTransactionServiceServer

func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer)

Types

type Transaction

type Transaction struct {
	Anmount         float64              `protobuf:"fixed64,1,opt,name=anmount,proto3" json:"anmount,omitempty"`
	Currency        Transaction_Currency `protobuf:"varint,2,opt,name=currency,proto3,enum=transactions.Transaction_Currency" json:"currency,omitempty"`
	Recipient       string               `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Reason          string               `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	VerificationKey string               `protobuf:"bytes,5,opt,name=verificationKey,proto3" json:"verificationKey,omitempty"`
	UserId          string               `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAnmount

func (x *Transaction) GetAnmount() float64

func (*Transaction) GetCurrency

func (x *Transaction) GetCurrency() Transaction_Currency

func (*Transaction) GetReason

func (x *Transaction) GetReason() string

func (*Transaction) GetRecipient

func (x *Transaction) GetRecipient() string

func (*Transaction) GetUserId

func (x *Transaction) GetUserId() string

func (*Transaction) GetVerificationKey

func (x *Transaction) GetVerificationKey() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionCollection

type TransactionCollection struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionCollection) Descriptor deprecated

func (*TransactionCollection) Descriptor() ([]byte, []int)

Deprecated: Use TransactionCollection.ProtoReflect.Descriptor instead.

func (*TransactionCollection) GetTransactions

func (x *TransactionCollection) GetTransactions() []*Transaction

func (*TransactionCollection) ProtoMessage

func (*TransactionCollection) ProtoMessage()

func (*TransactionCollection) ProtoReflect

func (x *TransactionCollection) ProtoReflect() protoreflect.Message

func (*TransactionCollection) Reset

func (x *TransactionCollection) Reset()

func (*TransactionCollection) String

func (x *TransactionCollection) String() string

type TransactionServiceClient

type TransactionServiceClient interface {
	GetUserTransactions(ctx context.Context, in *User, opts ...grpc.CallOption) (TransactionService_GetUserTransactionsClient, error)
}

TransactionServiceClient is the client API for TransactionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TransactionServiceServer

type TransactionServiceServer interface {
	GetUserTransactions(*User, TransactionService_GetUserTransactionsServer) error
	// contains filtered or unexported methods
}

TransactionServiceServer is the server API for TransactionService service. All implementations must embed UnimplementedTransactionServiceServer for forward compatibility

type TransactionService_GetUserTransactionsClient

type TransactionService_GetUserTransactionsClient interface {
	Recv() (*Transaction, error)
	grpc.ClientStream
}

type TransactionService_GetUserTransactionsServer

type TransactionService_GetUserTransactionsServer interface {
	Send(*Transaction) error
	grpc.ServerStream
}

type Transaction_Currency

type Transaction_Currency int32
const (
	Transaction_EUR Transaction_Currency = 0
	Transaction_USD Transaction_Currency = 1
)

func (Transaction_Currency) Descriptor

func (Transaction_Currency) Enum

func (Transaction_Currency) EnumDescriptor deprecated

func (Transaction_Currency) EnumDescriptor() ([]byte, []int)

Deprecated: Use Transaction_Currency.Descriptor instead.

func (Transaction_Currency) Number

func (Transaction_Currency) String

func (x Transaction_Currency) String() string

func (Transaction_Currency) Type

type UnimplementedTransactionServiceServer

type UnimplementedTransactionServiceServer struct {
}

UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionServiceServer) GetUserTransactions

type UnsafeTransactionServiceServer

type UnsafeTransactionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServiceServer will result in compilation errors.

type User

type User struct {
	Email        string         `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Id           string         `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Transactions []*Transaction `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetTransactions

func (x *User) GetTransactions() []*Transaction

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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