Documentation
¶
Index ¶
- func NewProxyServer(s counterapi.CounterServiceServer) counterapi.CounterServiceServer
- type ProxyServer
- func (s *ProxyServer) Decrement(ctx context.Context, request *counterapi.DecrementRequest) (*counterapi.DecrementResponse, error)
- func (s *ProxyServer) Get(ctx context.Context, request *counterapi.GetRequest) (*counterapi.GetResponse, error)
- func (s *ProxyServer) Increment(ctx context.Context, request *counterapi.IncrementRequest) (*counterapi.IncrementResponse, error)
- func (s *ProxyServer) Set(ctx context.Context, request *counterapi.SetRequest) (*counterapi.SetResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyServer ¶
func NewProxyServer(s counterapi.CounterServiceServer) counterapi.CounterServiceServer
NewProxyServer creates a new read-only counter server
Types ¶
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
ProxyServer is a read-only counter primitive server
func (*ProxyServer) Decrement ¶
func (s *ProxyServer) Decrement(ctx context.Context, request *counterapi.DecrementRequest) (*counterapi.DecrementResponse, error)
func (*ProxyServer) Get ¶
func (s *ProxyServer) Get(ctx context.Context, request *counterapi.GetRequest) (*counterapi.GetResponse, error)
func (*ProxyServer) Increment ¶
func (s *ProxyServer) Increment(ctx context.Context, request *counterapi.IncrementRequest) (*counterapi.IncrementResponse, error)
func (*ProxyServer) Set ¶
func (s *ProxyServer) Set(ctx context.Context, request *counterapi.SetRequest) (*counterapi.SetResponse, error)
Click to show internal directories.
Click to hide internal directories.