Directories ¶
Path | Synopsis |
---|---|
Lets create a minimal service with Orion API Interface Your service starts with the API interface, In orion we define all API interfaces as a protobuf file (stringsvc/stringproto/stringproto.proto) syntax = "proto3"; package stringproto; service StringService{ rpc Upper (UpperRequest) returns (UpperResponse){ } rpc Count (CountRequest) returns (CountResponse) { } } message UpperRequest { string msg = 1; } message UpperResponse { string msg = 1; } message CountRequest{ string msg = 1; } message CountResponse{ int64 count = 1; } Above protobuf file describes a service called "StringService" and defines the endpoints "Upper" and "Count", As we can see all our API Contracts are clearly laid out and makes it easy for other services to integrate with our service Generating Service Code we can execute protoc -I .
|
Lets create a minimal service with Orion API Interface Your service starts with the API interface, In orion we define all API interfaces as a protobuf file (stringsvc/stringproto/stringproto.proto) syntax = "proto3"; package stringproto; service StringService{ rpc Upper (UpperRequest) returns (UpperResponse){ } rpc Count (CountRequest) returns (CountResponse) { } } message UpperRequest { string msg = 1; } message UpperResponse { string msg = 1; } message CountRequest{ string msg = 1; } message CountResponse{ int64 count = 1; } Above protobuf file describes a service called "StringService" and defines the endpoints "Upper" and "Count", As we can see all our API Contracts are clearly laid out and makes it easy for other services to integrate with our service Generating Service Code we can execute protoc -I . |
echo/echo_proto
Package echo_proto is a generated protocol buffer package.
|
Package echo_proto is a generated protocol buffer package. |
echo/service
Package service must implement the generated proto's server interface
|
Package service must implement the generated proto's server interface |
simple/simple_proto
Package simple_proto is a generated protocol buffer package.
|
Package simple_proto is a generated protocol buffer package. |
stringsvc/stringproto
Package stringproto is a generated protocol buffer package.
|
Package stringproto is a generated protocol buffer package. |
stringsvc2/stringproto
Package stringproto is a generated protocol buffer package.
|
Package stringproto is a generated protocol buffer package. |
Package orion is a small lightweight framework written around grpc with the aim to shorten time to build microservices Source code for Orion can be found at https://github.com/go-orion/Orion It is derived from 'Framework' a small microservices framework written and used inside https://carousell.com, It comes with a number of sensible defaults such as zipkin tracing, hystrix, live reload of configuration, etc.
|
Package orion is a small lightweight framework written around grpc with the aim to shorten time to build microservices Source code for Orion can be found at https://github.com/go-orion/Orion It is derived from 'Framework' a small microservices framework written and used inside https://carousell.com, It comes with a number of sensible defaults such as zipkin tracing, hystrix, live reload of configuration, etc. |
helpers
package helpers contains helper that services can use
|
package helpers contains helper that services can use |
protoc-gen-orion is a plugin for the Google protocol buffer compiler to generate Orion Go code.
|
protoc-gen-orion is a plugin for the Google protocol buffer compiler to generate Orion Go code. |
httptripper
Package httptripper provides an implementation of http.RoundTripper that provides retries, popluates opentracing span info and hystrix circuit breaker.
|
Package httptripper provides an implementation of http.RoundTripper that provides retries, popluates opentracing span info and hystrix circuit breaker. |
httptripper/retry
Package retry provides an implementation for retrying http requests with multiple wait strategies
|
Package retry provides an implementation for retrying http requests with multiple wait strategies |
httptripper/strategy
Package strategy provides strategies for use with retry
|
Package strategy provides strategies for use with retry |
log
Package log provides a minimal interface for structured logging in services.
|
Package log provides a minimal interface for structured logging in services. |
log/loggers
Package loggers provides loggers implementation for log package
|
Package loggers provides loggers implementation for log package |
log/loggers/gokit
Package gokit provides BaseLogger implementation for go-kit/log
|
Package gokit provides BaseLogger implementation for go-kit/log |
log/loggers/logrus
Package logrus provides a BaseLogger implementation for logrus
|
Package logrus provides a BaseLogger implementation for logrus |
log/loggers/stdlog
Package stdlog provides a BaseLogger implementation for golang "log" package
|
Package stdlog provides a BaseLogger implementation for golang "log" package |
log/wrap
Package wrap provides multiple wrap functions to wrap log implementation of other log packages
|
Package wrap provides multiple wrap functions to wrap log implementation of other log packages |
pubsub/message_queue/mocks
Code generated by mockery v1.0.0.
|
Code generated by mockery v1.0.0. |
Click to show internal directories.
Click to hide internal directories.