accountpb

package
v0.0.0-...-c15509c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetIdentity",
			Handler:    _AccountService_GetIdentity_Handler,
		},
		{
			MethodName: "GetByHeight",
			Handler:    _AccountService_GetByHeight_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "grpc/account/accountpb/account.proto",
}

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

View Source
var File_grpc_account_accountpb_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

Types

type Account

type Account struct {
	Nonce      int64  `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Free       string `protobuf:"bytes,2,opt,name=free,proto3" json:"free,omitempty"`
	Reserved   string `protobuf:"bytes,3,opt,name=reserved,proto3" json:"reserved,omitempty"`
	MiscFrozen string `protobuf:"bytes,4,opt,name=misc_frozen,json=miscFrozen,proto3" json:"misc_frozen,omitempty"`
	FeeFrozen  string `protobuf:"bytes,5,opt,name=fee_frozen,json=feeFrozen,proto3" json:"fee_frozen,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetFeeFrozen

func (x *Account) GetFeeFrozen() string

func (*Account) GetFree

func (x *Account) GetFree() string

func (*Account) GetMiscFrozen

func (x *Account) GetMiscFrozen() string

func (*Account) GetNonce

func (x *Account) GetNonce() int64

func (*Account) GetReserved

func (x *Account) GetReserved() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountIdentity

type AccountIdentity struct {
	Deposit     string `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	LegalName   string `protobuf:"bytes,3,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"`
	WebName     string `protobuf:"bytes,4,opt,name=web_name,json=webName,proto3" json:"web_name,omitempty"`
	RiotName    string `protobuf:"bytes,5,opt,name=riot_name,json=riotName,proto3" json:"riot_name,omitempty"`
	EmailName   string `protobuf:"bytes,6,opt,name=email_name,json=emailName,proto3" json:"email_name,omitempty"`
	TwitterName string `protobuf:"bytes,7,opt,name=twitter_name,json=twitterName,proto3" json:"twitter_name,omitempty"`
	Image       string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountIdentity) Descriptor deprecated

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

Deprecated: Use AccountIdentity.ProtoReflect.Descriptor instead.

func (*AccountIdentity) GetDeposit

func (x *AccountIdentity) GetDeposit() string

func (*AccountIdentity) GetDisplayName

func (x *AccountIdentity) GetDisplayName() string

func (*AccountIdentity) GetEmailName

func (x *AccountIdentity) GetEmailName() string

func (*AccountIdentity) GetImage

func (x *AccountIdentity) GetImage() string

func (*AccountIdentity) GetLegalName

func (x *AccountIdentity) GetLegalName() string

func (*AccountIdentity) GetRiotName

func (x *AccountIdentity) GetRiotName() string

func (*AccountIdentity) GetTwitterName

func (x *AccountIdentity) GetTwitterName() string

func (*AccountIdentity) GetWebName

func (x *AccountIdentity) GetWebName() string

func (*AccountIdentity) ProtoMessage

func (*AccountIdentity) ProtoMessage()

func (*AccountIdentity) ProtoReflect

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

func (*AccountIdentity) Reset

func (x *AccountIdentity) Reset()

func (*AccountIdentity) String

func (x *AccountIdentity) String() string

type AccountServiceClient

type AccountServiceClient interface {
	// Fixed queries
	GetIdentity(ctx context.Context, in *GetIdentityRequest, opts ...grpc.CallOption) (*GetIdentityResponse, error)
	// Height queries
	GetByHeight(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error)
}

AccountServiceClient is the client API for AccountService 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 AccountServiceServer

type AccountServiceServer interface {
	// Fixed queries
	GetIdentity(context.Context, *GetIdentityRequest) (*GetIdentityResponse, error)
	// Height queries
	GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility

type GetByHeightRequest

type GetByHeightRequest struct {
	Height  int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByHeightRequest) Descriptor deprecated

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

Deprecated: Use GetByHeightRequest.ProtoReflect.Descriptor instead.

func (*GetByHeightRequest) GetAddress

func (x *GetByHeightRequest) GetAddress() string

func (*GetByHeightRequest) GetHeight

func (x *GetByHeightRequest) GetHeight() int64

func (*GetByHeightRequest) ProtoMessage

func (*GetByHeightRequest) ProtoMessage()

func (*GetByHeightRequest) ProtoReflect

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

func (*GetByHeightRequest) Reset

func (x *GetByHeightRequest) Reset()

func (*GetByHeightRequest) String

func (x *GetByHeightRequest) String() string

type GetByHeightResponse

type GetByHeightResponse struct {
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByHeightResponse) Descriptor deprecated

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

Deprecated: Use GetByHeightResponse.ProtoReflect.Descriptor instead.

func (*GetByHeightResponse) GetAccount

func (x *GetByHeightResponse) GetAccount() *Account

func (*GetByHeightResponse) ProtoMessage

func (*GetByHeightResponse) ProtoMessage()

func (*GetByHeightResponse) ProtoReflect

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

func (*GetByHeightResponse) Reset

func (x *GetByHeightResponse) Reset()

func (*GetByHeightResponse) String

func (x *GetByHeightResponse) String() string

type GetIdentityRequest

type GetIdentityRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIdentityRequest) Descriptor deprecated

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

Deprecated: Use GetIdentityRequest.ProtoReflect.Descriptor instead.

func (*GetIdentityRequest) GetAddress

func (x *GetIdentityRequest) GetAddress() string

func (*GetIdentityRequest) ProtoMessage

func (*GetIdentityRequest) ProtoMessage()

func (*GetIdentityRequest) ProtoReflect

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

func (*GetIdentityRequest) Reset

func (x *GetIdentityRequest) Reset()

func (*GetIdentityRequest) String

func (x *GetIdentityRequest) String() string

type GetIdentityResponse

type GetIdentityResponse struct {
	Identity *AccountIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIdentityResponse) Descriptor deprecated

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

Deprecated: Use GetIdentityResponse.ProtoReflect.Descriptor instead.

func (*GetIdentityResponse) GetIdentity

func (x *GetIdentityResponse) GetIdentity() *AccountIdentity

func (*GetIdentityResponse) ProtoMessage

func (*GetIdentityResponse) ProtoMessage()

func (*GetIdentityResponse) ProtoReflect

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

func (*GetIdentityResponse) Reset

func (x *GetIdentityResponse) Reset()

func (*GetIdentityResponse) String

func (x *GetIdentityResponse) String() string

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServiceServer) GetByHeight

func (UnimplementedAccountServiceServer) GetIdentity

type UnsafeAccountServiceServer

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

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

Jump to

Keyboard shortcuts

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