mock

package
v14.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSimpleServiceServer

func RegisterSimpleServiceServer(s *grpc.Server, srv SimpleServiceServer)

Types

type RepoRequest

type RepoRequest struct {
	Repo                 *gitalypb.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RepoRequest) Descriptor

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

func (*RepoRequest) GetRepo

func (m *RepoRequest) GetRepo() *gitalypb.Repository

func (*RepoRequest) ProtoMessage

func (*RepoRequest) ProtoMessage()

func (*RepoRequest) Reset

func (m *RepoRequest) Reset()

func (*RepoRequest) String

func (m *RepoRequest) String() string

func (*RepoRequest) XXX_DiscardUnknown

func (m *RepoRequest) XXX_DiscardUnknown()

func (*RepoRequest) XXX_Marshal

func (m *RepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepoRequest) XXX_Merge

func (m *RepoRequest) XXX_Merge(src proto.Message)

func (*RepoRequest) XXX_Size

func (m *RepoRequest) XXX_Size() int

func (*RepoRequest) XXX_Unmarshal

func (m *RepoRequest) XXX_Unmarshal(b []byte) error

type SimpleServiceClient

type SimpleServiceClient interface {
	// RepoAccessorUnary is a unary RPC that accesses a repo
	RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// RepoMutatorUnary is a unary RPC that mutates a repo
	RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

SimpleServiceClient is the client API for SimpleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSimpleServiceClient

func NewSimpleServiceClient(cc *grpc.ClientConn) SimpleServiceClient

type SimpleServiceServer

type SimpleServiceServer interface {
	// RepoAccessorUnary is a unary RPC that accesses a repo
	RepoAccessorUnary(context.Context, *RepoRequest) (*empty.Empty, error)
	// RepoMutatorUnary is a unary RPC that mutates a repo
	RepoMutatorUnary(context.Context, *RepoRequest) (*empty.Empty, error)
}

SimpleServiceServer is the server API for SimpleService service.

type UnimplementedSimpleServiceServer

type UnimplementedSimpleServiceServer struct {
}

UnimplementedSimpleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSimpleServiceServer) RepoAccessorUnary

func (*UnimplementedSimpleServiceServer) RepoAccessorUnary(ctx context.Context, req *RepoRequest) (*empty.Empty, error)

func (*UnimplementedSimpleServiceServer) RepoMutatorUnary

func (*UnimplementedSimpleServiceServer) RepoMutatorUnary(ctx context.Context, req *RepoRequest) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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