common

package
v0.0.0-...-42a0fc8 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallMethodInfo

type CallMethodInfo struct {
	// Name of the service.
	Service string

	// Name of the RPC.
	Name string
	// contains filtered or unexported fields
}

CallMethodInfo is an information about the RPC.

func CallMethodInfoBidirectionalStream

func CallMethodInfoBidirectionalStream(service, name string) (info CallMethodInfo)

CallMethodInfoBidirectionalStream returns CallMethodInfo structure initialized for the bidirectional streaming RPC.

func CallMethodInfoClientStream

func CallMethodInfoClientStream(service, name string) (info CallMethodInfo)

CallMethodInfoClientStream returns CallMethodInfo structure initialized for the client-side streaming RPC.

func CallMethodInfoServerStream

func CallMethodInfoServerStream(service, name string) (info CallMethodInfo)

CallMethodInfoServerStream returns CallMethodInfo structure initialized for the server-side streaming RPC.

func CallMethodInfoUnary

func CallMethodInfoUnary(service, name string) (info CallMethodInfo)

CallMethodInfoUnary returns CallMethodInfo structure initialized for the unary RPC.

func (CallMethodInfo) ClientStream

func (c CallMethodInfo) ClientStream() bool

ClientStream checks if CallMethodInfo contains information about the client-side streaming RPC.

func (CallMethodInfo) ServerStream

func (c CallMethodInfo) ServerStream() bool

ServerStream checks if CallMethodInfo contains information about the server-side streaming RPC.

Jump to

Keyboard shortcuts

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